Re: [PATCH 1/2] USB: serial: console: fix uninitialised spinlock

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Feb 08, 2017 at 06:53:08PM +0100, Johan Hovold wrote:
> 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@xxxxxxxxxxxxxxx>	# 4.6
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>

Reviewed-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux