Johan Hovold d9d1232b48 misc: bcm-vk: fix tty registration race
Make sure to set the tty class-device driver data before registering the
tty to avoid having a racing open() dereference a NULL pointer.

Fixes: 91ca10d6fa07 ("misc: bcm-vk: add ttyVK support")
Cc: stable@vger.kernel.org      # 5.12
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20210917115736.5816-1-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-09-21 16:17:15 +02:00
..
2021-06-14 08:59:06 +02:00
2021-05-14 13:43:26 +02:00
2021-09-01 08:44:42 -07:00
2021-08-27 16:22:26 +02:00
2021-05-13 17:03:20 +02:00
2021-03-02 22:41:23 +11:00
2021-05-21 15:05:08 +02:00
2021-09-07 19:13:42 -07:00