From 5f5c9ae56c38942623f69c3e6dc6ec78e4da2076 Mon Sep 17 00:00:00 2001 From: Geert Uytterhoeven Date: Fri, 28 Feb 2014 14:21:32 +0100 Subject: [PATCH] serial_core: Unregister console in uart_remove_one_port() If the serial port being removed is used as a console, it must also be unregistered from the console subsystem using unregister_console(). uart_ops.release_port() will release resources (e.g. iounmap() the serial port registers), causing a crash on subsequent kernel output if the console is still registered. Signed-off-by: Geert Uytterhoeven Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed