summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/smsc/smsc911x.h
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2012-01-08 00:15:16 +0400
committerDavid S. Miller <davem@davemloft.net>2012-01-08 00:15:16 +0400
commit6c15d74defd38e7e7f8805392578b7a1d508097e (patch)
treec647b38da15453d689c840893564508e27d6a17a /drivers/net/ethernet/smsc/smsc911x.h
parent6d62a66e4211546f9e5c5d1ad586749a51cf30db (diff)
downloadlinux-6c15d74defd38e7e7f8805392578b7a1d508097e.tar.xz
asix: fix infinite loop in rx_fixup()
At this point if skb->len happens to be 2, the subsequant skb_pull(skb, 4) call won't work and the skb->len won't be decreased and won't ever reach 0, resulting in an infinite loop. With an ASIX 88772 under heavy load, without this patch, rx_fixup() reaches an infinite loop in less than a minute. With this patch applied, no infinite loop even after hours of heavy load. Signed-off-by: Aurelien Jacobs <aurel@gnuage.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/smsc/smsc911x.h')
0 files changed, 0 insertions, 0 deletions