Input: usbtouchscreen - initialize PM mutex before using it
authorOliver Neukum <oneukum@suse.com>
Thu, 1 Aug 2019 16:40:26 +0000 (09:40 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 1 Aug 2019 17:55:20 +0000 (10:55 -0700)
commitb55d996f057bf2e7ba9422a80b5e17e99860cb0b
treef50fa96dd0577f8fefac7db47ee77f5eeaea1d8b
parente77ff779a0c6666b697c56a6e41972bbf30b977f
Input: usbtouchscreen - initialize PM mutex before using it

Mutexes shall be initialized before they are used.

Fixes: 12e510dbc57b2 ("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>
drivers/input/touchscreen/usbtouchscreen.c