]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit56adff5a6e0221ffb78ccb46672b3713a36e6b7c
tree70180aac5b8c0d12d1e2793167dbdf2d2a5039c7
parent7ffbce3f659dafca5403dad77e3fad1072f555ea
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