Thread (1 message) 1 message, 1 author, 2016-02-05

Re: [PATCH] HID: Check whether if the hidraw is NULL pointer before release.

From: Jiri Kosina <jikos@kernel.org>
Date: 2016-02-05 13:33:30
Also in: lkml

On Tue, 2 Feb 2016, shenpengru@gmail.com wrote:
From: shenpengru <redacted>

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help