]> 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)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 10 Oct 2012 02:31:18 +0000 (03:31 +0100)
commit163aec38df496440970fbbe37f24cd4be9fea1d8
treed0b920ba5cdb451c392c3f09e9262396e3f68124
parent3084fc2f2e8cf84b1d0a66323c26943d5ca98860
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/hid/hidraw.c