mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
Input: usbtouchscreen - initialize PM mutex before using it
Mutexes shall be initialized before they are used.
Fixes: 12e510dbc5 ("Input: usbtouchscreen - fix deadlock in autosuspend")
Reported-by: [email protected]
Signed-off-by: Oliver Neukum <[email protected]>
Cc: [email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
This commit is contained in:
parent
e77ff779a0
commit
b55d996f05
1 changed files with 2 additions and 0 deletions
|
|
@ -1659,6 +1659,8 @@ static int usbtouch_probe(struct usb_interface *intf,
|
|||
if (!usbtouch || !input_dev)
|
||||
goto out_free;
|
||||
|
||||
mutex_init(&usbtouch->pm_mutex);
|
||||
|
||||
type = &usbtouch_dev_info[id->driver_info];
|
||||
usbtouch->type = type;
|
||||
if (!type->process_pkt)
|
||||
|
|
|
|||
Loading…
Reference in a new issue