* Re: [PATCH] HID: Check whether if the hidraw is NULL pointer before release.
[not found] <1454395789-13507-1-git-send-email-shenpengru@gmail.com>
@ 2016-02-05 13:33 ` Jiri Kosina
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2016-02-05 13:33 UTC (permalink / raw)
To: shenpengru; +Cc: benjamin.tissoires, linux-input, linux-kernel, shenpengru
On Tue, 2 Feb 2016, shenpengru@gmail.com wrote:
> From: shenpengru <shenpengru@xiaomi.com>
>
> The logic of service which operate hidraw device in user-space may
> not correct, sometimes it may release hidraw dev for more than once.
> In order to prevent this situation, we need to make the driver more
> robust.
Hmm .. how would you call close(fd) twice on the same descriptor and let
it pass fput()?
I'd like to better understand how we ended up in this situation. Could you
please provide more details?
Thanks a lot,
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] HID: Check whether if the hidraw is null pointer before release.
[not found] <1454318785-11289-1-git-send-email-shenpengru@gmail.com>
@ 2016-02-01 10:12 ` Jiri Kosina
0 siblings, 0 replies; 2+ messages in thread
From: Jiri Kosina @ 2016-02-01 10:12 UTC (permalink / raw)
To: shenpengru; +Cc: benjamin.tissoires, linux-input, linux-kernel, shenpengru
On Mon, 1 Feb 2016, shenpengru@gmail.com wrote:
> From: shenpengru <shenpengru@xiaomi.com>
Changelog needs to go here.
Namely -- what bug is being fixed, what effects does it cause and how is
it possible to trigger it (under which circumstances can we end up with
null pointer there).
Thanks,
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-05 13:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1454395789-13507-1-git-send-email-shenpengru@gmail.com>
2016-02-05 13:33 ` [PATCH] HID: Check whether if the hidraw is NULL pointer before release Jiri Kosina
[not found] <1454318785-11289-1-git-send-email-shenpengru@gmail.com>
2016-02-01 10:12 ` [PATCH] HID: Check whether if the hidraw is null " Jiri Kosina
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.