diff options
author | Johan Hovold <[email protected]> | 2021-09-17 13:57:36 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2021-09-21 16:17:15 +0200 |
commit | d9d1232b48344c6c72dbdf89fae1e7638e5df757 (patch) | |
tree | 16057b182a4ce007a26f7c912ee1ceddc6587052 /drivers/fpga/fpga-bridge.c | |
parent | 50c7ad36e65498802a4015d987d92445ecfb5d00 (diff) |
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: [email protected] # 5.12
Signed-off-by: Johan Hovold <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions