yellowfin: Fix buffer underrun after dev_alloc_skb() failure
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 19 Aug 2009 03:21:40 +0000 (20:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Aug 2009 03:21:40 +0000 (20:21 -0700)
yellowfin_init_ring() needs to clean up if dev_alloc_skb() fails and
should pass an error status up to the caller. This also prevents an
buffer underrun if failure occurred in the first iteration.
yellowfin_open() which calls yellowfin_init_ring() should free its
requested irq upon failure.

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

No differences found