3c515: Write outside array bounds
authorroel kluin <roel.kluin@gmail.com>
Thu, 30 Jul 2009 00:26:32 +0000 (00:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Jul 2009 20:27:28 +0000 (13:27 -0700)
commit3d54015b750e5d5e950a1dcee2735387fd4b6e1a
tree3973a0cf147b4069bf3b33609e191cd9c70a1d1d
parent2a8aaacda5097fa92a39948da1b4c6614b6e150e
3c515: Write outside array bounds

if dev_alloc_skb() fails on the first iteration, a write to
cp->rx_ring[-1] occurs.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/3c515.c