[PATCH] pcnet32: Handle memory allocation failures cleanly when resizing tx/rx rings
authorDon Fry <brazilnut@us.ibm.com>
Thu, 29 Jun 2006 20:54:38 +0000 (13:54 -0700)
committerJeff Garzik <jeff@garzik.org>
Wed, 5 Jul 2006 18:07:15 +0000 (14:07 -0400)
commit06c878500893c315795fcf944ecbd85c3d023040
tree3d1d35bc8ab6238ace77c0e17ed1098fc58c50a2
parent12fa30f35b52e85b4c37a2ef3c3320c158d510fa
[PATCH] pcnet32: Handle memory allocation failures cleanly when resizing tx/rx rings

Fix pcnet32_set_ringparam to handle memory allocation errors without
leaving the adapter in an inoperative state and null pointers waiting to
be dereferenced.

Tested ia32 and ppc64.

Signed-off-by: Don Fry <brazilnut@us.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/pcnet32.c