module: Check for NULL ctors and dtors
commit4027dbf9df88e3feaa3744c6622e4ae7cf8ecd6e
authorMatt Fleming <matt.fleming@intel.com>
Wed, 23 Jan 2013 13:40:24 +0000 (23 13:40 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Wed, 23 Jan 2013 15:05:28 +0000 (23 15:05 +0000)
tree63669275f07fe58b26669b2f504a3a7ba5f44475
parentcd079794e8908b9402840cde322bbd32ae08523c
module: Check for NULL ctors and dtors

Don't dereference a NULL ctor/dtor as that can cause us to crash.

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/lib/sys/module/common.c
com32/lib/sys/module/elf_module.c