]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: msi2500: assign SPI bus number dynamically
authorAntti Palosaari <crope@iki.fi>
Sat, 17 Aug 2019 01:12:10 +0000 (03:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Dec 2020 12:46:50 +0000 (13:46 +0100)
commit37e7d9aa24bd40c62062df0fa1a0a2f245519d96
treeb604d320adf7f23b44dd8a67a21c990f911aefc0
parenta9c625fcddc078624e1e7a673443b29c71be3431
media: msi2500: assign SPI bus number dynamically

commit 9c60cc797cf72e95bb39f32316e9f0e5f85435f9 upstream.

SPI bus number must be assigned dynamically for each device, otherwise it
will crash when multiple devices are plugged to system.

Reported-and-tested-by: syzbot+c60ddb60b685777d9d59@syzkaller.appspotmail.com
Cc: stable@vger.kernel.org
Signed-off-by: Antti Palosaari <crope@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/usb/msi2500/msi2500.c