diff
+#include <assert.h>

 void hub_get(struct usb_hub *hub)
 {
+    assert(hub != NULL);
     kref_get(&hub->kref);
 }
