mirror of
https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable.git
synced 2025-10-13 22:27:36 +10:00
usb: net: sierra: check for no status endpoint
[ Upstream commit4c4ca3c461
] The driver checks for having three endpoints and having bulk in and out endpoints, but not that the third endpoint is interrupt input. Rectify the omission. Reported-by: syzbot+3f89ec3d1d0842e95d50@syzkaller.appspotmail.com Closes: https://lore.kernel.org/linux-usb/686d5a9f.050a0220.1ffab7.0017.GAE@google.com/ Tested-by: syzbot+3f89ec3d1d0842e95d50@syzkaller.appspotmail.com Fixes:eb4fd8cd35
("net/usb: add sierra_net.c driver") Signed-off-by: Oliver Neukum <oneukum@suse.com> Link: https://patch.msgid.link/20250714111326.258378-1-oneukum@suse.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
27591d9261
commit
5dd6a44174
@ -689,6 +689,10 @@ static int sierra_net_bind(struct usbnet *dev, struct usb_interface *intf)
|
||||
status);
|
||||
return -ENODEV;
|
||||
}
|
||||
if (!dev->status) {
|
||||
dev_err(&dev->udev->dev, "No status endpoint found");
|
||||
return -ENODEV;
|
||||
}
|
||||
/* Initialize sierra private data */
|
||||
priv = kzalloc(sizeof *priv, GFP_KERNEL);
|
||||
if (!priv)
|
||||
|
Loading…
Reference in New Issue
Block a user