From: Jason Wessel Date: Thu, 29 Mar 2012 11:17:17 +0000 (-0500) Subject: kdb: Fix smatch warning on dbg_io_ops->is_console X-Git-Tag: v3.4-rc2~17^2~5 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78724b8ef83fc2bcfbc0a72a7ad8a3ce5ad25e6a;p=pandora-kernel.git 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 Reported-by: Dan Carpenter Signed-off-by: Jason Wessel --- Reading git-diff-tree failed