
<     struct usb_interface *intf = to_usb_interface(hub->intfdev);
---
>     if (hub == NULL) {
>         return -ENODEV;
>     }
>     struct usb_interface *intf = to_usb_interface(hub->intfdev);
