USB: rio500: refuse more than one device at a time
authorOliver Neukum <oneukum@suse.com>
Thu, 9 May 2019 09:30:58 +0000 (11:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Jun 2019 07:17:12 +0000 (09:17 +0200)
commitd2d93077bac37c6895d8c58f564699a3a897c5db
tree08d9e81f5223eee4f6db3f4c27478950dd864fbc
parentd8c1703932bc476609d96f86ea85e46351b66fb9
USB: rio500: refuse more than one device at a time

commit 3864d33943b4a76c6e64616280e98d2410b1190f upstream.

This driver is using a global variable. It cannot handle more than
one device at a time. The issue has been existing since the dawn
of the driver.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Reported-by: syzbot+35f04d136fc975a70da4@syzkaller.appspotmail.com
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/rio500.c