diff options
author | 2013-07-29 14:16:13 +0930 | |
---|---|---|
committer | 2013-07-29 14:43:28 +0930 | |
commit | 057b82be3ca3d066478e43b162fc082930a746c9 (patch) | |
tree | 8ca217f1b7c0e48a21540cb38779cc7a48216535 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | virtio/console: Add pipe_lock/unlock for splice_write (diff) | |
download | linux-dev-057b82be3ca3d066478e43b162fc082930a746c9.tar.xz linux-dev-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 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions