]> git.baikalelectronics.ru Git - kernel.git/commit
Input: usbtouchscreen - fix deadlock in autosuspend
authorMarcus Folkesson <marcus.folkesson@gmail.com>
Sat, 17 Mar 2018 17:52:39 +0000 (10:52 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 26 Mar 2018 22:21:24 +0000 (15:21 -0700)
commit6f3b4a948c0a0e1ac448ac2d704542b78994d288
treed6da355348de82167f6056adf404fe7d55d06bd1
parent06b597a6f4d3887a3d627d695d97b5421bc41265
Input: usbtouchscreen - fix deadlock in autosuspend

usb_autopm_get_interface() that is called in usbtouch_open() does an
autoresume if the device is suspended.

input_dev->mutex used in usbtouch_resume() is in this case already
taken by the input subsystem and will cause a deadlock.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/usbtouchscreen.c