]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:50:29 +0000 (05:50 +0900)
commit57a38d925e665fcd729cd9ad4a75c84e11bd95c9
treebe6c20580ec9d337ba48762966a83a66d6082927
parent117262a8c47819ec502722159096b5dc90883a2b
HID: hidraw: don't deallocate memory when it is in use

commit 4fe9f8e203fdad1524c04beb390f3c6099781ed9 upstream.

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>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hidraw.c