media: radio/si470x: kill urb on error
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 15 Aug 2019 12:40:52 +0000 (09:40 -0300)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 19 Aug 2019 15:08:06 +0000 (12:08 -0300)
commit0d616f2a3fdbf1304db44d451d9f07008556923b
tree762d013aae2471f9fa245c05bf140fcd9b6c039b
parent3cec570b6d9c371bef1688a00ceb039aa4221fb7
media: radio/si470x: kill urb on error

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