HID: hidraw: don't deallocate memory when it is in use
authorRatan Nalumasu <ratan@google.com>
Sat, 22 Sep 2012 18:46:30 +0000 (11:46 -0700)
committerJiri Kosina <jkosina@suse.cz>
Mon, 1 Oct 2012 08:27:36 +0000 (10:27 +0200)
commit4fe9f8e203fdad1524c04beb390f3c6099781ed9
treeb3f6e92fb068c718fd2f6a9b345b03f3dda970ed
parentcead24c1181ad199354bd08013d0f9d08b66691b
HID: hidraw: don't deallocate memory when it is in use

When a device is unplugged, wait for all processes that have opened the device
to close before deallocating the device.

Signed-off-by: Ratan Nalumasu <ratan@google.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hidraw.c