aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-12-06 21:33:17 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2017-12-06 21:33:17 -0500
commit968edbd93c0cbb40ab48aca972392d377713a0c3 (patch)
tree5c09541bafb48bf6089dc0e5a6d2d1ef0ff664af
parentba3edf1f770ebc486f9d69824f4a2e069da4d2d4 (diff)
parent4e23f78c74934e8ea624b59df58e646e0657608a (diff)
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
-rw-r--r--MAINTAINERS1
-rw-r--r--kernel/debug/kdb/kdb_io.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/MAINTAINERS b/MAINTAINERS
index 64c1ceaef4be..85773bf90b0a 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -7767,6 +7767,7 @@ F: security/keys/
7767 7767
7768KGDB / KDB /debug_core 7768KGDB / KDB /debug_core
7769M: Jason Wessel <jason.wessel@windriver.com> 7769M: Jason Wessel <jason.wessel@windriver.com>
7770M: Daniel Thompson <daniel.thompson@linaro.org>
7770W: http://kgdb.wiki.kernel.org/ 7771W: http://kgdb.wiki.kernel.org/
7771L: kgdb-bugreport@lists.sourceforge.net 7772L: kgdb-bugreport@lists.sourceforge.net
7772T: git git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/kgdb.git 7773T: git git://git.kernel.org/pub/scm/linux/kernel/git/jwessel/kgdb.git
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:
350 } 350 }
351 kdb_printf("\n"); 351 kdb_printf("\n");
352 for (i = 0; i < count; i++) { 352 for (i = 0; i < count; i++) {
353 if (kallsyms_symbol_next(p_tmp, i) < 0) 353 if (WARN_ON(!kallsyms_symbol_next(p_tmp, i)))
354 break; 354 break;
355 kdb_printf("%s ", p_tmp); 355 kdb_printf("%s ", p_tmp);
356 *(p_tmp + len) = '\0'; 356 *(p_tmp + len) = '\0';