]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
serial: 8250_lpss: avoid potential kernel crash when remove
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 5 Jan 2017 21:46:20 +0000 (23:46 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2017 10:51:25 +0000 (11:51 +0100)
commit3f08087826950de4688da0aea4e4f64f536fcdd6
tree6efcadc5c4efc54e0603d2faee5fc0e99223ce39
parentabe81f3b8ed2996e1712d26d38ff6b73f582c616
serial: 8250_lpss: avoid potential kernel crash when remove

This is a follow up to the commit a9b01b5823f7 ("serial: 8250_mid fix calltrace
when hotplug 8250 serial controller") in which the kernel crash was described
for another 8250 based driver. It appears that we have the very same issue in
8250_lpss. Fix it by unregistering serial driver first.

Cc: Liwei Song <liwei.song@windriver.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Bryan O'Donoghue <pure.logic@nexus-software.ie>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_lpss.c