diff options
author | Jesper Juhl <jesper.juhl@gmail.com> | 2006-12-08 11:39:34 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-08 17:29:01 +0100 |
commit | f6e2cdc8aa395ea813603bfd81b70b5c461a8ebf (patch) | |
tree | cc6c66b9b53bfd313114c4b464223bef992449b4 /drivers/isdn/hisax/hisax_isac.c | |
parent | [PATCH] isdn: fix missing unregister_capi_driver (diff) | |
download | linux-f6e2cdc8aa395ea813603bfd81b70b5c461a8ebf.tar.xz linux-f6e2cdc8aa395ea813603bfd81b70b5c461a8ebf.zip |
[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 <jesper.juhl@gmail.com>
Cc: Karsten Keil <kkeil@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn/hisax/hisax_isac.c')
0 files changed, 0 insertions, 0 deletions