Re: [PATCH] wifi: zd1211rw: reject secondary interfaces to prevent conflicts
Jeff Johnson <[email protected]> Wed, 29 Jul 2026 11:53:32 -0700
| Newsgroups | dev.linux.lists.syzbot,org.kernel.vger.linux-kernel,org.kernel.vger.linux-wireless |
|---|---|
| Message-ID | <[email protected]> |
On 7/29/2026 1:04 AM, syzbot wrote: > @@ -1353,6 +1353,13 @@ static int probe(struct usb_interface *intf, const struct usb_device_id *id) > struct zd_usb *usb; > struct ieee80211_hw *hw = NULL; > > + /* ZD1211 devices are single-function. Reject secondary interfaces this does not follow linux block comment style /* should be on a separate line (at one time networking code had a different style, but not now) > + * to prevent multiple instances from conflicting on hardcoded endpoints > + * and triggering recursive locking warnings. > + */ > + if (intf->cur_altsetting->desc.bInterfaceNumber != 0) > + return -ENODEV; > + > print_id(udev); > > if (id->driver_info & DEVICE_INSTALLER) > > > base-commit: 1590cf0329716306e948a8fc29f1d3ee87d3989f