# Re: Q: weird hidraw behaviour

- From: David Herrmann \<hidden\>
- Date: 2013-10-10 09:41:07 
- List: linux-input
- Page: https://ratatoskr.run/linux-input/2013/10/8922186
- Thread: https://ratatoskr.run/linux-input/2013/09/8922100/t.md

```text
Hi

On Thu, Oct 10, 2013 at 11:39 AM, Mika Westerberg
[ref] wrote:
> On Thu, Oct 10, 2013 at 11:26:45AM +0200, David Herrmann wrote:
>> 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
```
