media: radio/si470x: kill urb on error
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 15 Aug 2019 12:40:52 +0000 (09:40 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2019 11:09:44 +0000 (13:09 +0200)
commit4a2cb7600b72ff0eda483d97a24b29c3959efdfa
tree1d3134bc52942b35cb38124b269d41281b00b17d
parentdfaf60580191207627a85739850799bbb13280f4
media: radio/si470x: kill urb on error

[ Upstream commit 0d616f2a3fdbf1304db44d451d9f07008556923b ]

In the probe() function radio->int_in_urb was not killed if an
error occurred in the probe sequence. It was also missing in
the disconnect.

This caused this syzbot issue:

https://syzkaller.appspot.com/bug?extid=2d4fc2a0c45ad8da7e99

Reported-and-tested-by: syzbot+2d4fc2a0c45ad8da7e99@syzkaller.appspotmail.com
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/radio/si470x/radio-si470x-usb.c