From: Jesper Juhl Date: Sat, 29 Sep 2007 05:42:09 +0000 (-0700) Subject: Avoid possible NULL pointer deref in 3c359 driver X-Git-Tag: v2.6.24-rc1~1454^2~236 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcfef8c3681fa59b653871682956a8fdf5c27c5a;p=pandora-kernel.git Avoid possible NULL pointer deref in 3c359 driver In xl_freemem(), if dev_if is NULL, the line struct xl_private *xl_priv =(struct xl_private *)dev->priv; will cause a NULL pointer dereference. (akpm: don't try to fix it: just delete the pointless test-for-null) Signed-off-by: Jesper Juhl Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed