--- usb-ohci.orig Tue May 2 20:35:58 2000 +++ usb-ohci.c Tue May 2 20:38:40 2000 @@ -1354,6 +1354,11 @@ __u8 data[8]; num_ports = readl (&ohci->regs->roothub.a) & RH_A_NDP; + if (num_ports > MAX_ROOT_PORTS) { + info ("corrupted"); + ohci->disabled = true; + BUG (); + } *(__u8 *) data = (readl (&ohci->regs->roothub.status) & (RH_HS_LPSC | RH_HS_OCIC)) ? 1: 0; ret = *(__u8 *) data;