diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2012-01-07 12:15:16 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2012-01-12 11:33:42 -0800 |
commit | 91c97c63d36c26b571a3d7f5706a84f88a5bd997 (patch) | |
tree | 083944c1671a3c9df804542b5d4bddef09a8b1f9 /kernel | |
parent | dd9f9823b61ce894163433380ffcfc28eaf6e9c5 (diff) |
asix: fix infinite loop in rx_fixup()
commit 6c15d74defd38e7e7f8805392578b7a1d508097e upstream.
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>
Cc: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions