]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
usb/net/r8152: fix integer overflow in expression
authorhayeswang <hayeswang@realtek.com>
Fri, 12 Jul 2013 08:26:15 +0000 (16:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Jul 2013 23:13:34 +0000 (16:13 -0700)
commit3ff25e3c4531aff5b1a96e2ea6e1a2d355263019
treee9f93b286fb74bcbd610d2f099d51f94d82e05d3
parent40dadff26539d1695d2a37b44f66c53158439ae9
usb/net/r8152: fix integer overflow in expression

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@realtek.com>
Spotted-by: kbuild test robot <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c