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>
|
||
|---|---|---|
| .. | ||
| bcm_vk_dev.c | ||
| bcm_vk_msg.c | ||
| bcm_vk_msg.h | ||
| bcm_vk_sg.c | ||
| bcm_vk_sg.h | ||
| bcm_vk_tty.c | ||
| bcm_vk.h | ||
| Kconfig | ||
| Makefile | ||