From: Aurelien Jacobs Date: Sat, 7 Jan 2012 20:15:16 +0000 (-0800) Subject: asix: fix infinite loop in rx_fixup() X-Git-Tag: v3.3-rc1~134^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c15d74defd38e7e7f8805392578b7a1d508097e;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed