serial: kgdboc: Lock console list in probe function
authorThomas Gleixner <tglx@linutronix.de>
Wed, 16 Nov 2022 16:21:13 +0000 (17:27 +0106)
committerPetr Mladek <pmladek@suse.com>
Fri, 2 Dec 2022 10:24:59 +0000 (11:24 +0100)
commit9e409c4778afbbd44759e56ec4bbed839fd31909
tree01fe724f81e59779518c7f1cbc8b5c83ef7c3804
parent51f5f78a4f804aeb73cf12a7cbba6e5198abd908
serial: kgdboc: Lock console list in probe function

Unprotected list walks are not necessarily safe.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20221116162152.193147-2-john.ogness@linutronix.de
drivers/tty/serial/kgdboc.c