[PATCH] pcnet32: show name of failing device
authorDon Fry <brazilnut@us.ibm.com>
Tue, 1 Nov 2005 20:04:33 +0000 (12:04 -0800)
committerJeff Garzik <jgarzik@pobox.com>
Sat, 5 Nov 2005 19:40:55 +0000 (14:40 -0500)
Display the name eth%d or pci_name() of device which fails to allocate
memory.  When changing ring size via ethtool, it also releases the
lock before returning on error.  Added comment that the caller of
pcnet32_alloc_ring must call pcnet32_free_ring on error, to avoid leak.
Tested ia32 by forcing allocation errors.

Signed-off-by: Don Fry <brazilnut@us.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>

No differences found