summaryrefslogtreecommitdiffstats
path: root/drivers/char/scx200_gpio.c
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2013-07-29 06:46:13 +0200
committerRusty Russell <rusty@rustcorp.com.au>2013-07-29 07:13:28 +0200
commit057b82be3ca3d066478e43b162fc082930a746c9 (patch)
tree8ca217f1b7c0e48a21540cb38779cc7a48216535 /drivers/char/scx200_gpio.c
parentvirtio/console: Add pipe_lock/unlock for splice_write (diff)
downloadlinux-057b82be3ca3d066478e43b162fc082930a746c9.tar.xz
linux-057b82be3ca3d066478e43b162fc082930a746c9.zip
virtio: console: fix race with port unplug and open/close
There's a window between find_port_by_devt() returning a port and us taking a kref on the port, where the port could get unplugged. Fix it by taking the reference in find_port_by_devt() itself. Problem reported and analyzed by Mateusz Guzik. CC: <stable@vger.kernel.org> Reported-by: Mateusz Guzik <mguzik@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/char/scx200_gpio.c')
0 files changed, 0 insertions, 0 deletions