lmc: Read outside array bounds
commit8dd07086a1f8048428d33a1917b6209978750cb1
authorroel kluin <roel.kluin@gmail.com>
Mon, 10 Aug 2009 01:29:52 +0000 (10 01:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Aug 2009 23:26:10 +0000 (13 16:26 -0700)
tree2f6ba6838459114c802302a89d049ee2ef7a2458
parenta6fa32866567351503db8a5c3466a676ba08595f
lmc: Read outside array bounds

If dev_alloc_skb() fails on the first iteration of the allocation loop,
then we end up writing before the start of the array.

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