aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorJohan Hovold <[email protected]>2021-09-06 14:45:38 +0200
committerGreg Kroah-Hartman <[email protected]>2021-09-14 09:18:18 +0200
commit92dc0b1f46e12cfabd28d709bb34f7a39431b44f (patch)
tree2394c04a918fd9ad43d0f8c10678735cfb83d9f6 /drivers/fpga/fpga-bridge.c
parent6880fa6c56601bb8ed59df6c30fd390cc5f6dd8f (diff)
staging: greybus: uart: fix tty use after free
User space can hold a tty open indefinitely and tty drivers must not release the underlying structures until the last user is gone. Switch to using the tty-port reference counter to manage the life time of the greybus tty state to avoid use after free after a disconnect. Fixes: a18e15175708 ("greybus: more uart work") Cc: [email protected] # 4.9 Reviewed-by: Alex Elder <[email protected]> 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