aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/xilinx-spi.c
diff options
context:
space:
mode:
authorDmitry Vyukov <[email protected]>2017-03-04 12:46:12 +0000
committerGreg Kroah-Hartman <[email protected]>2017-03-17 05:07:10 +0000
commita4a3e061149f09c075f108b6f1cf04d9739a6bc2 (patch)
tree1539f1e567023aeda89d8ea8af68d885d6b8f7dd /drivers/fpga/xilinx-spi.c
parenttty: don't panic on OOM in tty_set_ldisc() (diff)
downloadkernel-a4a3e061149f09c075f108b6f1cf04d9739a6bc2.tar.gz
kernel-a4a3e061149f09c075f108b6f1cf04d9739a6bc2.zip
tty: fix data race in tty_ldisc_ref_wait()
tty_ldisc_ref_wait() checks tty->ldisc under tty->ldisc_sem. But if ldisc==NULL it releases them sem and reloads tty->ldisc without holding the sem. This is wrong and can lead to returning non-NULL ldisc without protection. Don't reload tty->ldisc second time. Signed-off-by: Dmitry Vyukov <[email protected]> Cc: [email protected] Cc: [email protected] Cc: Greg Kroah-Hartman <[email protected]> Cc: Jiri Slaby <[email protected]> Cc: Peter Hurley <[email protected]> Cc: One Thousand Gnomes <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-spi.c')
0 files changed, 0 insertions, 0 deletions