]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit6097cedaa866755436317b8cdb25db35c6aedb6f
tree3d1d35bc8ab6238ace77c0e17ed1098fc58c50a2
parent54cbc0f1d93e3d51dba11fb3bd0879ed476c3eb6
[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