Re: Q: weird hidraw behaviour

From
David Herrmann <hidden>
Date
2013-10-10 09:41:07
Reply to
Mika Westerberg, 2013-10-10
Hi

On Thu, Oct 10, 2013 at 11:39 AM, Mika Westerberg
[off-list ref] wrote:
On Thu, Oct 10, 2013 at 11:26:45AM +0200, David Herrmann wrote:
quoted
I don't know whether it's intentional, but it is hardcoded this way
now. Logic is, ->close() is called on hidraw_disconnect() that is,
when hidraw is unloaded on a device. It no longer depends on
user-space processes.

Any reason to change it back? It's no bug, so if no-one cares I'd
leave it as it is now. Otherwise, we can try to change it again.
Well, if you open the device and close it from userspace, the device stays
opened forever. I'm not sure if that's the intention.

I think that fix for this was already merged.
Indeed, fixed upstream in:
http://git.kernel.org/cgit/linux/kernel/git/jikos/hid.git/commit/?h=for-3.12/upstream-fixes&id=0f5a24c6602063e014ee48892ebf56093241106e

Thanks
David
Thread (9 messages) 9 messages, 3 authors, last reply 2013-10-10
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help