alistair23-linux/kernel/debug
Jason Wessel 78724b8ef8 kdb: Fix smatch warning on dbg_io_ops->is_console
The Smatch tool warned that the change from commit b8adde8dd
(kdb: Avoid using dbg_io_ops until it is initialized) should
add another null check later in the kdb_printf().

It is worth noting that the second use of dbg_io_ops->is_console
is protected by the KDB_PAGER state variable which would only
get set when kdb is fully active and initialized.  If we
ever encounter changes or defects in the KDB_PAGER state
we do not want to crash the kernel in a kdb_printf/printk.

CC: Tim Bird <tim.bird@am.sony.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
2012-03-29 17:41:23 -05:00
..
kdb kdb: Fix smatch warning on dbg_io_ops->is_console 2012-03-29 17:41:23 -05:00
debug_core.c kgdb,debug_core: add the ability to control the reboot notifier 2012-03-22 15:07:16 -05:00
debug_core.h debug_core: refactor locking for master/slave cpus 2010-10-22 15:34:13 -05:00
gdbstub.c kgdb,debug-core,gdbstub: Hook the reboot notifier for debugger detach 2012-03-22 15:07:15 -05:00
Makefile kdb: core for kgdb back end (1 of 2) 2010-05-20 21:04:20 -05:00