aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2020-05-25 13:59:52 +0300
committerGreg Kroah-Hartman <[email protected]>2020-05-27 10:55:35 +0200
commit8f065acec7573672dd15916e31d1e9b2e785566c (patch)
tree49527a5f8dcf0f1e845c0503235fee12aa73cb42 /net/switchdev/switchdev.c
parent344235f55707f6f7538378e9790cec58e86ebbca (diff)
serial: imx: Initialize lock for non-registered console
The commit a3cb39d258ef ("serial: core: Allow detach and attach serial device for console") changed a bit logic behind lock initialization since for most of the console driver it's supposed to have lock already initialized even if console is not enabled. However, it's not the case for Freescale IMX console. Initialize lock explicitly in the ->probe(). Note, there is still an open question should or shouldn't not this driver register console properly. Fixes: a3cb39d258ef ("serial: core: Allow detach and attach serial device for console") Reported-by: Guenter Roeck <[email protected]> Cc: stable <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions