From: Jesper Juhl Date: Fri, 8 Dec 2006 10:39:34 +0000 (-0800) Subject: [PATCH] ISDN: Avoid a potential NULL ptr deref in ippp X-Git-Tag: v2.6.20-rc1~34^2~145 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6e2cdc8aa395ea813603bfd81b70b5c461a8ebf;p=pandora-kernel.git [PATCH] ISDN: Avoid a potential NULL ptr deref in ippp There's a potential problem in isdn_ppp.c::isdn_ppp_decompress(). dev_alloc_skb() may fail and return NULL. If it does we will be passing a NULL skb_out to ipc->decompress() and may also end up dereferencing a NULL pointer at *proto = isdn_ppp_strip_proto(skb_out); Correct this by testing 'skb_out' against NULL early and bail out. Signed-off-by: Jesper Juhl Cc: Karsten Keil Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed