Commit 476db72e authored by Rajat Asthana's avatar Rajat Asthana Committed by Mauro Carvalho Chehab
Browse files

media: mceusb: return without resubmitting URB in case of -EPROTO error.



Syzkaller reported a warning called "rcu detected stall in dummy_timer".

The error seems to be an error in mceusb_dev_recv(). In the case of
-EPROTO error, the routine immediately resubmits the URB. Instead it
should return without resubmitting URB.

Reported-by: default avatar <syzbot+4d3749e9612c2cfab956@syzkaller.appspotmail.com>
Signed-off-by: default avatarRajat Asthana <rajatasthana4@gmail.com>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent 44870a9e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1386,6 +1386,7 @@ static void mceusb_dev_recv(struct urb *urb)
	case -ECONNRESET:
	case -ENOENT:
	case -EILSEQ:
	case -EPROTO:
	case -ESHUTDOWN:
		usb_unlink_urb(urb);
		return;