From: Bjørn Mork Date: Fri, 1 Nov 2013 10:16:53 +0000 (+0100) Subject: net: cdc_ncm: log the length we warn about X-Git-Tag: firefly_0821_release~176^2~4992^2~79^2~8 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a26fd05debd00b6f4e776d9dca4a39f0b76b01c7;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Bjørn Mork Signed-off-by: David S. Miller --- 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; }