]> 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)
commit379d0f3658e3c573ac1b313b847c094dd081cab2
treed6da355348de82167f6056adf404fe7d55d06bd1
parent01cd53af166252e8131d1967c427ea99ea1bbfac
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