]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: cm109 - do not stomp on control URB
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 10 Dec 2020 04:13:24 +0000 (20:13 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:25:39 +0000 (11:25 +0100)
commit956d173d4f0a92b12dcd976b42c04bd60723605e
tree25b5b4021938e1043eb691c6fa0c5e0aff18e20c
parenta5386457f1b6f590514d67db8dc20331d32bee32
Input: cm109 - do not stomp on control URB

commit 82e06090473289ce63e23fdeb8737aad59b10645 upstream.

We need to make sure we are not stomping on the control URB that was
issued when opening the device when attempting to toggle buzzer.
To do that we need to mark it as pending in cm109_open().

Reported-and-tested-by: syzbot+150f793ac5bc18eee150@syzkaller.appspotmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/misc/cm109.c