linux-imx/kernel/debug
Daniel Thompson f89c8a7e32 kdb: Fix handling of kallsyms_symbol_next() return value
commit c07d353380 upstream.

kallsyms_symbol_next() returns a boolean (true on success). Currently
kdb_read() tests the return value with an inequality that
unconditionally evaluates to true.

This is fixed in the obvious way and, since the conditional branch is
supposed to be unreachable, we also add a WARN_ON().

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
2018-03-03 15:50:44 +00:00
..
kdb kdb: Fix handling of kallsyms_symbol_next() return value 2018-03-03 15:50:44 +00:00
debug_core.c kgdb,debug_core: pass the breakpoint struct instead of address and memory 2012-04-13 08:33:48 -07:00
debug_core.h debug_core: refactor locking for master/slave cpus 2010-10-22 15:34:13 -05:00
gdbstub.c kgdb: follow rename pack_hex_byte() to hex_byte_pack() 2011-10-31 17:30:56 -07:00
Makefile kdb: core for kgdb back end (1 of 2) 2010-05-20 21:04:20 -05:00