浏览代码

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 <mort@sgi.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Martin Hicks 15 年之前
父节点
当前提交
1396a21ba0
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      kernel/debug/kdb/kdb_main.c

+ 3 - 0
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)