projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43c87f7
)
net: cdc_ncm: log the length we warn about
author
Bjørn Mork
<bjorn@mork.no>
Fri, 1 Nov 2013 10:16:53 +0000
(11:16 +0100)
committer
David S. Miller
<davem@davemloft.net>
Sat, 2 Nov 2013 06:02:03 +0000
(
02:02
-0400)
Fix cut'n'paste typo. Log the bogus length and not the
irrelevant signature.
Cc: Alexey Orishko <alexey.orishko@gmail.com>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/usb/cdc_ncm.c
b/drivers/net/usb/cdc_ncm.c
index c40f742f62003c51bab126ee0107d6ecaa65adeb..b5fdf8f16f5dbfb14990aad89111afeb3219f631 100644
(file)
--- a/
drivers/net/usb/cdc_ncm.c
+++ b/
drivers/net/usb/cdc_ncm.c
@@
-923,7
+923,7
@@
int cdc_ncm_rx_verify_ndp16(struct sk_buff *skb_in, int ndpoffset)
if (le16_to_cpu(ndp16->wLength) < USB_CDC_NCM_NDP16_LENGTH_MIN) {
pr_debug("invalid DPT16 length <%u>\n",
-
le32_to_cpu(ndp16->dwSignature
));
+
le16_to_cpu(ndp16->wLength
));
goto error;
}