projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cdfa4a
)
net/usb/kalmia: signedness bug in kalmia_bind()
author
Dan Carpenter
<error27@gmail.com>
Thu, 23 Jun 2011 10:15:39 +0000
(
03:15
-0700)
committer
David S. Miller
<davem@davemloft.net>
Thu, 23 Jun 2011 10:15:39 +0000
(
03:15
-0700)
"status" should be an int here for the error handling to work.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/kalmia.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/usb/kalmia.c
b/drivers/net/usb/kalmia.c
index d4edeb2af9beaadb0bf5941ac16372ee7b6bab82..a9b6c63d54e4ed9ed7622781ae88d4b835807662 100644
(file)
--- a/
drivers/net/usb/kalmia.c
+++ b/
drivers/net/usb/kalmia.c
@@
-135,7
+135,7
@@
kalmia_init_and_get_ethernet_addr(struct usbnet *dev, u8 *ethernet_addr)
static int
kalmia_bind(struct usbnet *dev, struct usb_interface *intf)
{
-
u8
status;
+
int
status;
u8 ethernet_addr[ETH_ALEN];
/* Don't bind to AT command interface */