diff options
| author | Amit Shah <amit.shah@redhat.com> | 2013-07-29 14:16:13 +0930 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-14 22:59:08 -0700 |
| commit | 7b9f0c23359a5a20dccda4db14cc760625ad64c4 (patch) | |
| tree | 127a14d49cc7bf3ec0941f85ea07daf208012ca3 /include/linux/stacktrace.h | |
| parent | 98c9710e0aa2b939423605488b5817f27118ce40 (diff) | |
virtio: console: fix race with port unplug and open/close
commit 057b82be3ca3d066478e43b162fc082930a746c9 upstream.
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.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/stacktrace.h')
0 files changed, 0 insertions, 0 deletions
