OSDN Git Service

media: msi2500: assign SPI bus number dynamically
authorAntti Palosaari <crope@iki.fi>
Sat, 17 Aug 2019 01:12:10 +0000 (03:12 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Fri, 27 Nov 2020 07:12:11 +0000 (08:12 +0100)
commit9c60cc797cf72e95bb39f32316e9f0e5f85435f9
treec734432c4bdfc5a912895696ccc46e1a28aaa0d6
parent3ec7fdc58363bb204c75d6158e3560fd7cabbf5c
media: msi2500: assign SPI bus number dynamically

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>
drivers/media/usb/msi2500/msi2500.c