Re: [PATCH net 1/2] usb/net/r8152: fix integer overflow inexpression
From: David Miller
Date: Fri Jul 12 2013 - 19:14:11 EST
From: Hayes Wang <hayeswang@xxxxxxxxxxx>
Date: Fri, 12 Jul 2013 16:26:15 +0800
> config: make ARCH=avr32 allyesconfig
> drivers/net/usb/r8152.c: In function 'rtl8152_start_xmit':
> drivers/net/usb/r8152.c:956: warning: integer overflow in expression
>
> 955 memset(tx_desc, 0, sizeof(*tx_desc));
> > 956 tx_desc->opts1 = cpu_to_le32((len & TX_LEN_MASK) | TX_FS | TX_LS);
> 957 tp->tx_skb = skb;
>
> Signed-off-by: Hayes Wang <hayeswang@xxxxxxxxxxx>
> Spotted-by: kbuild test robot <fengguang.wu@xxxxxxxxx>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/