]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - drivers/hid/hidraw.c
HID: hidraw: close underlying device at removal of last reader
authorManoj Chourasia <mchourasia@nvidia.com>
Tue, 1 Oct 2013 10:09:00 +0000 (15:39 +0530)
committerJiri Kosina <jkosina@suse.cz>
Wed, 2 Oct 2013 15:02:08 +0000 (17:02 +0200)
commit0f5a24c6602063e014ee48892ebf56093241106e
tree70180aac5b8c0d12d1e2793167dbdf2d2a5039c7
parent550dbf47819239c7ceb27bbd9879e2feb0633aab
HID: hidraw: close underlying device at removal of last reader

Even though device exist bit is set the underlying
HW device should be closed when the last reader
of the device is closed i.e. open count drops to zero.

Signed-off-by: Manoj Chourasia <mchourasia@nvidia.com>
Reported-by: mika.westerberg@linux.intel.com
Tested-by: mika.westerberg@linux.intel.com
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hidraw.c