From: Martin Hicks Date: Thu, 22 Jul 2010 00:27:05 +0000 (-0500) Subject: kdb: break out of kdb_ll() when command is terminated X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1396a21ba0d4ec381db19bc9cd5b6f25a89cf633;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git kdb: break out of kdb_ll() when command is terminated Without this patch the "ll" linked-list traversal command won't terminate when you hit q/Q. Signed-off-by: Martin Hicks Signed-off-by: Jason Wessel --- diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c index 184cd8209c36..a7fe2e98d613 100644 --- a/kernel/debug/kdb/kdb_main.c +++ b/kernel/debug/kdb/kdb_main.c @@ -2291,6 +2291,9 @@ static int kdb_ll(int argc, const char **argv) while (va) { char buf[80]; + if (KDB_FLAG(CMD_INTERRUPT)) + return 0; + sprintf(buf, "%s " kdb_machreg_fmt "\n", command, va); diag = kdb_parse(buf); if (diag)