Skip to content

Commit b55d996

Browse files
oneukumdtor
authored andcommitted
Input: usbtouchscreen - initialize PM mutex before using it
Mutexes shall be initialized before they are used. Fixes: 12e510d ("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]>
1 parent e77ff77 commit b55d996

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/input/touchscreen/usbtouchscreen.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,6 +1659,8 @@ static int usbtouch_probe(struct usb_interface *intf,
16591659
if (!usbtouch || !input_dev)
16601660
goto out_free;
16611661

1662+
mutex_init(&usbtouch->pm_mutex);
1663+
16621664
type = &usbtouch_dev_info[id->driver_info];
16631665
usbtouch->type = type;
16641666
if (!type->process_pkt)

0 commit comments

Comments
 (0)