]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] pcnet32: remove incorrect pcnet32_free_ring
authorDon Fry <brazilnut@us.ibm.com>
Thu, 25 May 2006 23:22:40 +0000 (16:22 -0700)
committerJeff Garzik <jeff@garzik.org>
Sat, 27 May 2006 01:33:18 +0000 (21:33 -0400)
commitf5ccda79f03d074904b4c813700a153d49da1c63
tree64eedaff752008bb4a5622d1e8eac3d906ccf220
parent8273cce09c2a81c7632309bb11ac1b0da6046467
[PATCH] pcnet32: remove incorrect pcnet32_free_ring

During a code scan for another change I discovered that this call to
pcnet32_free_ring must be removed.  If the open fails due to a lack of
memory all the ring structures are removed via the call to free_ring
and a subsequent call to open will dereference a null pointer in
pcnet32_init_ring.

Please apply to 2.6.17.

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