summaryrefslogtreecommitdiff
path: root/kernel/debug
diff options
context:
space:
mode:
authorPetr Mladek <pmladek@suse.com>2023-09-04 11:37:37 +0200
committerPetr Mladek <pmladek@suse.com>2023-09-04 11:37:37 +0200
commitf0f692395353b99a54f7f6e5a8684d73af504879 (patch)
tree3725700932e1782a10a2fe52dc8d262ad9520a4a /kernel/debug
parentb355362845704f66c486ecd6b789d9246e990f18 (diff)
parent132a90d1527fedba2d95085c951ccf00dbbebe41 (diff)
downloadlwn-f0f692395353b99a54f7f6e5a8684d73af504879.tar.gz
lwn-f0f692395353b99a54f7f6e5a8684d73af504879.zip
Merge branch 'rework/misc-cleanups' into for-linus
Diffstat (limited to 'kernel/debug')
-rw-r--r--kernel/debug/kdb/kdb_io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/debug/kdb/kdb_io.c b/kernel/debug/kdb/kdb_io.c
index 5c7e9ba7cd6b..e9139dfc1f0a 100644
--- a/kernel/debug/kdb/kdb_io.c
+++ b/kernel/debug/kdb/kdb_io.c
@@ -576,6 +576,8 @@ static void kdb_msg_write(const char *msg, int msg_len)
continue;
if (c == dbg_io_ops->cons)
continue;
+ if (!c->write)
+ continue;
/*
* Set oops_in_progress to encourage the console drivers to
* disregard their internal spin locks: in the current calling