[PATCH 0/2] usbip: vhci_hcd: fix NULL deref and NR_HCS upper bound

From: Adrian Wowk

Date: Mon Apr 13 2026 - 21:01:45 EST


These two patches fix a NULL pointer dereference in vhci_sysfs.c
triggered when a VHCI host controller fails to probe, and tighten
the Kconfig upper bound for USBIP_VHCI_NR_HCS to reflect the real
maximum imposed by USB_MAXBUS.

Tested on Ubuntu 6.8.0-110-generic (6.8.12) on a Dell PowerEdge R640,
issue is reproducible with CONFIG_USBIP_VHCI_NR_HCS > 32 or potentially
lower if there is already other USB hardware connected.

Adrian Wowk (2):
usbip: vhci_hcd: fix NULL deref in status_show_vhci
usbip: vhci_hcd: reduce CONFIG_USBIP_VHCI_NR_HCS upper bound to 32

drivers/usb/usbip/Kconfig | 2 +-
drivers/usb/usbip/vhci_sysfs.c | 52 +++++++++++++++++++---------------
2 files changed, 30 insertions(+), 24 deletions(-)

--
2.53.0