Home
last modified time | relevance | path

Searched hist:"2 c6b4b70" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/
H A Dnetconsole.c2c6b4b70 Wed Nov 16 10:21:43 CST 2022 John Ogness <john.ogness@linutronix.de> netconsole: avoid CON_ENABLED misuse to track registration

The CON_ENABLED flag is being misused to track whether or not the
extended console should be or has been registered. Instead use
a local variable to decide if the extended console should be
registered and console_is_registered() to determine if it has
been registered.

Also add a check in cleanup_netconsole() to only unregister the
extended console if it has been registered.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20221116162152.193147-32-john.ogness@linutronix.de