diff options
author | Johan Hovold | 2017-02-08 18:53:08 +0100 |
---|---|---|
committer | Johan Hovold | 2017-02-08 21:20:25 +0100 |
commit | 14816b16fa0adac24f82492f18fa62c55acabbbe (patch) | |
tree | 5709e76e755d7bfbca4b69340c258b63dc4fa243 /mm/swap_cgroup.c | |
parent | acfe27633b4c380a67956bd2f73fc9a2c932cc39 (diff) |
USB: serial: console: fix uninitialised spinlock
Since commit 4a510969374a ("tty: Make tty_files_lock per-tty") a new
tty_struct spin lock is taken in the tty release path, but the
USB-serial-console hack was never updated hence leaving the lock of its
"fake" tty uninitialised. This was eventually detected by lockdep.
Make sure to initialise the new lock also for the fake tty to address
this regression.
Yes, this code is a mess, but cleaning it up is left for another day.
Fixes: 4a510969374a ("tty: Make tty_files_lock per-tty")
Cc: stable <stable@vger.kernel.org> # 4.6
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'mm/swap_cgroup.c')
0 files changed, 0 insertions, 0 deletions