]> err.no Git - linux-2.6/commit
[PATCH] Dereference in tokenring/olympic.c
authorEric Sesterhenn <snakebyte@gmx.de>
Wed, 21 Jun 2006 14:17:17 +0000 (16:17 +0200)
committerJeff Garzik <jeff@garzik.org>
Fri, 23 Jun 2006 03:24:18 +0000 (23:24 -0400)
commit6d56ab936237b429366ade0d2a1540c7e41beb87
tree6e767fd02c7c43aa72d600bdb5057c14dd05d56f
parenta192491ad58098f2c57d2d1efe721ea0634dc0aa
[PATCH] Dereference in tokenring/olympic.c

hi,

coverity found (bug id #225) that we might call free_netdev()
with NULL argument, when alloc_trdev() fails. This patch
changes the goto, so we dont call free_netdev() for
dev == NULL.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/tokenring/olympic.c