]> err.no Git - linux-2.6/commit
[PATCH] ensure NULL deref can't possibly happen in is_exported()
authorJesper Juhl <jesper.juhl@gmail.com>
Sun, 25 Jun 2006 12:47:09 +0000 (05:47 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 25 Jun 2006 17:00:59 +0000 (10:00 -0700)
commitf867d2a2e5f3f0ce6356f452cc27b70d577de7c7
tree2c098f197a80847510b7f0e98ca2209e89dfd32f
parent5474c120aafe78ca54bf272f7a01107c42da2b21
[PATCH] ensure NULL deref can't possibly happen in is_exported()

If CONFIG_KALLSYMS is defined and if it should happen that is_exported() is
given a NULL 'mod' and lookup_symbol(name, __start___ksymtab,
__stop___ksymtab) returns 0, then we'll end up dereferencing a NULL
pointer.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/module.c