mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
Input: usbtouchscreen - initialize PM mutex before using it
commitb55d996f05upstream. Mutexes shall be initialized before they are used. Fixes:12e510dbc5("Input: usbtouchscreen - fix deadlock in autosuspend") Reported-by: syzbot+199ea16c7f26418b4365@syzkaller.appspotmail.com Signed-off-by: Oliver Neukum <oneukum@suse.com> Cc: stable@vger.kernel.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c9a1c10487
commit
ce7d4fe4e5
|
|
@ -1672,6 +1672,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 New Issue
Block a user