OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06605b0
)
brcmfmac: add a check for the status of usb_register
author
Kangjie Lu
<kjlu@umn.edu>
Wed, 26 Dec 2018 01:22:24 +0000
(19:22 -0600)
committer
Kalle Valo
<kvalo@codeaurora.org>
Thu, 10 Jan 2019 11:36:38 +0000
(13:36 +0200)
usb_register() may fail, so let's check its status and issue an error
message if it fails.
Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
b/drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
index
a4308c6
..
76cfaf6
100644
(file)
--- a/
drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
+++ b/
drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c
@@
-1550,6
+1550,10
@@
void brcmf_usb_exit(void)
void brcmf_usb_register(void)
{
+ int ret;
+
brcmf_dbg(USB, "Enter\n");
- usb_register(&brcmf_usbdrvr);
+ ret = usb_register(&brcmf_usbdrvr);
+ if (ret)
+ brcmf_err("usb_register failed %d\n", ret);
}