Merge branch 'x86-microcode-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[firefly-linux-kernel-4.4.55.git] / drivers / usb / wusbcore / reservation.c
index 6f4fafdc240117d0fd2879001e0c63db8981901a..ead79f7939275bb7c1c46f50bc568c3c2a6d8f33 100644 (file)
@@ -80,6 +80,9 @@ int wusbhc_rsv_establish(struct wusbhc *wusbhc)
        struct uwb_dev_addr bcid;
        int ret;
 
+       if (rc == NULL)
+               return -ENODEV;
+
        rsv = uwb_rsv_create(rc, wusbhc_rsv_complete_cb, wusbhc);
        if (rsv == NULL)
                return -ENOMEM;