diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2017-08-11 13:32:17 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2017-08-11 13:32:17 +1000 |
commit | d3c25fbc89c7b24ac18dcfb6ed28e4d8073b8ea6 (patch) | |
tree | 30d9e690897b14e6702a9ac3a811fdf0b1d0edaf /kernel | |
parent | 67cae79b762a1b636a2a4223a70423f8a1020142 (diff) | |
parent | 7a6653fca50077f342bcdc39222d78928e3f0feb (diff) |
Merge remote-tracking branch 'kgdb/kgdb-next'
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/debug/kdb/kdb_io.c | 2 |
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'; |