net: cdc_ncm: log the length we warn about
authorBjørn Mork <bjorn@mork.no>
Fri, 1 Nov 2013 10:16:53 +0000 (11:16 +0100)
committerDavid 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

index c40f742f62003c51bab126ee0107d6ecaa65adeb..b5fdf8f16f5dbfb14990aad89111afeb3219f631 100644 (file)
@@ -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;
        }