From: Jesper Juhl Date: Mon, 25 Sep 2006 23:39:24 +0000 (-0700) Subject: [PATCH] fix possible NULL ptr deref in forcedeth X-Git-Tag: v2.6.19-rc1~897^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46798c897e235e71e1e9c46a5e6e9adfffd8b85d;p=pandora-kernel.git [PATCH] fix possible NULL ptr deref in forcedeth There seems to be a possible NULL pointer deref bug in drivers/net/forcedeth.c::nv_loopback_test(). If dev_alloc_skb() fails, the next line will call skb_put() with a NULL first argument which it'll then try to deref - kaboom: a NULL pointer deref. Found by coverity (#1337). Signed-off-by: Jesper Juhl Cc: Ayaz Abdulla Cc: Manfred Spraul Cc: Stephen Hemminger Cc: Jeff Garzik Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed