summaryrefslogtreecommitdiffstats
path: root/drivers/net/usb
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2013-11-01 11:16:53 +0100
committerDavid S. Miller <davem@davemloft.net>2013-11-02 07:02:03 +0100
commita26fd05debd00b6f4e776d9dca4a39f0b76b01c7 (patch)
treec15a696fb3ddca5ccf3cb0251ca47ad00c5daaf8 /drivers/net/usb
parentnet: cdc_ncm: set correct dev->hard_mtu (diff)
downloadlinux-a26fd05debd00b6f4e776d9dca4a39f0b76b01c7.tar.xz
linux-a26fd05debd00b6f4e776d9dca4a39f0b76b01c7.zip
net: cdc_ncm: log the length we warn about
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>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r--drivers/net/usb/cdc_ncm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c
index c40f742f6200..b5fdf8f16f5d 100644
--- 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;
}