Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Revert "serial: sunhv: Initialize lock for non-registered console"

This reverts commit 0f87aa66e8c314f95c00eeff978c8a0b41e05d50.

There has been a quick fix against uninitialised lock revealed by
the commit f743061a85f5 ("serial: core: Initialise spin lock before use
in uart_configure_port()"). Since we have now better fix in serial core,
this may be safely reverted.

Fixes: 0f87aa66e8c3 ("serial: sunhv: Initialize lock for non-registered console")
Depends-on: f743061a85f5 ("serial: core: Initialise spin lock before use in uart_configure_port()")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20200711135346.71171-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Andy Shevchenko and committed by
Greg Kroah-Hartman
30336ef6 6f2c6599

-3
-3
drivers/tty/serial/sunhv.c
··· 567 567 sunserial_console_match(&sunhv_console, op->dev.of_node, 568 568 &sunhv_reg, port->line, false); 569 569 570 - /* We need to initialize lock even for non-registered console */ 571 - spin_lock_init(&port->lock); 572 - 573 570 err = uart_add_one_port(&sunhv_reg, port); 574 571 if (err) 575 572 goto out_unregister_driver;