summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-12-06 18:33:17 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-12-06 18:33:17 -0800
commit968edbd93c0cbb40ab48aca972392d377713a0c3 (patch)
tree5c09541bafb48bf6089dc0e5a6d2d1ef0ff664af /kernel
parentba3edf1f770ebc486f9d69824f4a2e069da4d2d4 (diff)
parent4e23f78c74934e8ea624b59df58e646e0657608a (diff)
downloadlinux-968edbd93c0cbb40ab48aca972392d377713a0c3.tar.gz
linux-968edbd93c0cbb40ab48aca972392d377713a0c3.tar.bz2
linux-968edbd93c0cbb40ab48aca972392d377713a0c3.zip
Merge tag 'for_linus-4.15-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/kgdb
Pull kgdb fixes from Jason Wessel: - Fix long standing problem with kdb kallsyms_symbol_next() return value - Add new co-maintainer Daniel Thompson * tag 'for_linus-4.15-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/kgdb: kgdb/kdb/debug_core: Add co-maintainer Daniel Thompson kdb: Fix handling of kallsyms_symbol_next() return value
Diffstat (limited to 'kernel')
-rw-r--r--kernel/debug/kdb/kdb_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/debug/kdb/kdb_io.c b/kernel/debug/kdb/kdb_io.c
index e74be38245ad..ed5d34925ad0 100644
--- a/kernel/debug/kdb/kdb_io.c
+++ b/kernel/debug/kdb/kdb_io.c
@@ -350,7 +350,7 @@ poll_again:
}
kdb_printf("\n");
for (i = 0; i < count; i++) {
- if (kallsyms_symbol_next(p_tmp, i) < 0)
+ if (WARN_ON(!kallsyms_symbol_next(p_tmp, i)))
break;
kdb_printf("%s ", p_tmp);
*(p_tmp + len) = '\0';