Re: [syzbot] [media?] [usb?] WARNING in usb_free_urb

From: Hillf Danton
Date: Sat Jun 01 2024 - 23:21:23 EST


On Sat, 01 Jun 2024 18:44:29 -0700
> syzbot found the following issue on:
>
> HEAD commit: e0cce98fe279 Merge tag 'tpmdd-next-6.10-rc2' of git://git...
> git tree: upstream
> C reproducer: https://syzkaller.appspot.com/x/repro.c?x=157ada62980000

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master

--- x/drivers/media/usb/siano/smsusb.c
+++ y/drivers/media/usb/siano/smsusb.c
@@ -168,7 +168,6 @@ static int smsusb_submit_urb(struct smsu
smsusb_onresponse,
surb
);
- surb->urb->transfer_flags |= URB_FREE_BUFFER;

return usb_submit_urb(surb->urb, GFP_ATOMIC);
}
--