linux-stable/drivers/misc/bcm-vk
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: 91ca10d6fa ("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
..
Kconfig misc: bcm-vk: only support ttyVK if CONFIG_TTY is set 2021-02-04 00:48:58 +01:00
Makefile misc: bcm-vk: only support ttyVK if CONFIG_TTY is set 2021-02-04 00:48:58 +01:00
bcm_vk.h misc: bcm-vk: only support ttyVK if CONFIG_TTY is set 2021-02-04 00:48:58 +01:00
bcm_vk_dev.c kernel.h: split out panic and oops helpers 2021-07-01 11:06:04 -07:00
bcm_vk_msg.c misc: bcm-vk: use list_move_tail instead of list_del/list_add_tail in bcm_vk_msg.c 2021-06-09 14:52:16 +02:00
bcm_vk_msg.h misc: bcm-vk: Replace zero-length array with flexible array member 2021-05-21 22:03:29 +02:00
bcm_vk_sg.c misc: bcm-vk: add VK messaging support 2021-01-25 18:44:44 +01:00
bcm_vk_sg.h misc: bcm-vk: add VK messaging support 2021-01-25 18:44:44 +01:00
bcm_vk_tty.c misc: bcm-vk: fix tty registration race 2021-09-21 16:17:15 +02:00