]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[TG3]: Handle tg3_init_rings() failures
authorMichael Chan <mchan@broadcom.com>
Tue, 25 Jul 2006 23:38:29 +0000 (16:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Jul 2006 23:38:29 +0000 (16:38 -0700)
commit32d8c5724b7b05c7d8f7386c49432104cc222e32
tree6aead952a08a295135c5faf7da5ff8523a6e4616
parentb9ec6c1b917e2e43a058a78198d54aeca3d71c6f
[TG3]: Handle tg3_init_rings() failures

Handle dev_alloc_skb() failures when initializing the RX rings.
Without proper handling, the driver will crash when using a partial
ring.

Thanks to Stephane Doyon <sdoyon@max-t.com> for reporting the bug and
providing the initial patch.

Howie Xu <howie@vmware.com> also reported the same issue.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c