Message ID | 54609F09.6070807@broadcom.com |
---|---|
State | Awaiting Upstream, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/drivers/net/wireless/brcm80211/brcmfmac/usb.c b/drivers/net/wireles index dc13591..786c40b 100644 --- a/drivers/net/wireless/brcm80211/brcmfmac/usb.c +++ b/drivers/net/wireless/brcm80211/brcmfmac/usb.c @@ -640,7 +640,7 @@ static int brcmf_usb_dl_cmd(struct brcmf_usbdev_info *devinf char *tmpbuf; u16 size; - if ((!devinfo) || (devinfo->ctl_urb == NULL)) + if (!devinfo || !devinfo->ctl_urb || !devinfo->ctl_completed) return -EINVAL;