summaryrefslogtreecommitdiff
path: root/Documentation/security
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2022-11-16 17:27:43 +0106
committerPetr Mladek <pmladek@suse.com>2022-12-02 11:25:02 +0100
commit2c6b4b7065a7006271a9c12b1a1e6c56dc6d3796 (patch)
tree8aad1bb9826ed83570da8db6f8f3227c26b659d4 /Documentation/security
parent9490b22ab39d12a06ab60465f2c4fc6a18d99752 (diff)
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
Diffstat (limited to 'Documentation/security')
0 files changed, 0 insertions, 0 deletions