]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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 10:27:48 +0000 (12:27 +0200)
commit4678cdb0851cdaee0bda3d9eb975e71613a472e7
treee4ba8d639c90b4271dca8d77e455fb08f3622def
parent0fc9c24adca9b54156597c69e896810b3a5b9c3d
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