diff options
-rw-r--r-- | drivers/net/usb/cdc_ncm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/usb/cdc_ncm.c b/drivers/net/usb/cdc_ncm.c index d49e4c5b292a..83e6d5ba962a 100644 --- a/drivers/net/usb/cdc_ncm.c +++ b/drivers/net/usb/cdc_ncm.c | |||
@@ -882,7 +882,7 @@ int cdc_ncm_rx_verify_nth16(struct cdc_ncm_ctx *ctx, struct sk_buff *skb_in) | |||
882 | 882 | ||
883 | nth16 = (struct usb_cdc_ncm_nth16 *)skb_in->data; | 883 | nth16 = (struct usb_cdc_ncm_nth16 *)skb_in->data; |
884 | 884 | ||
885 | if (le32_to_cpu(nth16->dwSignature) != USB_CDC_NCM_NTH16_SIGN) { | 885 | if (nth16->dwSignature != cpu_to_le32(USB_CDC_NCM_NTH16_SIGN)) { |
886 | netif_dbg(dev, rx_err, dev->net, | 886 | netif_dbg(dev, rx_err, dev->net, |
887 | "invalid NTH16 signature <%#010x>\n", | 887 | "invalid NTH16 signature <%#010x>\n", |
888 | le32_to_cpu(nth16->dwSignature)); | 888 | le32_to_cpu(nth16->dwSignature)); |
@@ -972,7 +972,7 @@ next_ndp: | |||
972 | 972 | ||
973 | ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset); | 973 | ndp16 = (struct usb_cdc_ncm_ndp16 *)(skb_in->data + ndpoffset); |
974 | 974 | ||
975 | if (le32_to_cpu(ndp16->dwSignature) != USB_CDC_NCM_NDP16_NOCRC_SIGN) { | 975 | if (ndp16->dwSignature != cpu_to_le32(USB_CDC_NCM_NDP16_NOCRC_SIGN)) { |
976 | netif_dbg(dev, rx_err, dev->net, | 976 | netif_dbg(dev, rx_err, dev->net, |
977 | "invalid DPT16 signature <%#010x>\n", | 977 | "invalid DPT16 signature <%#010x>\n", |
978 | le32_to_cpu(ndp16->dwSignature)); | 978 | le32_to_cpu(ndp16->dwSignature)); |