summaryrefslogtreecommitdiff
path: root/drivers/hid/usbhid/hiddev.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-09 10:38:58 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-09 10:38:58 +0300
commitbb3a151dd42765acc8f469ff994de3ab31f15a95 (patch)
tree87cd7da605aacb88aae36f4e69f255537e78e8fa /drivers/hid/usbhid/hiddev.c
parent1f836f5b10f2524d33efde47d2b694b861ecf319 (diff)
parent2c523b344dfa65a3738e7039832044aa133c75fb (diff)
downloadlinux-bb3a151dd42765acc8f469ff994de3ab31f15a95.tar.xz
Merge 5.6-rc5 into char-misc-next
We need the binder and other fixes in here as well. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hid/usbhid/hiddev.c')
-rw-r--r--drivers/hid/usbhid/hiddev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/usbhid/hiddev.c b/drivers/hid/usbhid/hiddev.c
index a970b809d778..4140dea693e9 100644
--- a/drivers/hid/usbhid/hiddev.c
+++ b/drivers/hid/usbhid/hiddev.c
@@ -932,9 +932,9 @@ void hiddev_disconnect(struct hid_device *hid)
hiddev->exist = 0;
if (hiddev->open) {
- mutex_unlock(&hiddev->existancelock);
hid_hw_close(hiddev->hid);
wake_up_interruptible(&hiddev->wait);
+ mutex_unlock(&hiddev->existancelock);
} else {
mutex_unlock(&hiddev->existancelock);
kfree(hiddev);