diff options
author | Amit Shah <amit.shah@redhat.com> | 2011-03-04 03:34:33 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-06 18:44:13 (GMT) |
commit | d7a62cd0332115d4c7c4689abea0d889a30d8349 (patch) | |
tree | ced474d2ff1959576ac55f760bbafbe1073af11a /Documentation/edac.txt | |
parent | fb62c00a6d8942775abc23d1621db1252e2d93d1 (diff) | |
download | linux-fsl-qoriq-d7a62cd0332115d4c7c4689abea0d889a30d8349.tar.xz |
virtio: console: Don't access vqs if device was unplugged
If a virtio-console device gets unplugged while a port is open, a
subsequent close() call on the port accesses vqs to free up buffers.
This can lead to a crash.
The buffers are already freed up as a result of the call to
unplug_ports() from virtcons_remove(). The fix is to simply not access
vq information if port->portdev is NULL.
Reported-by: juzhang <juzhang@redhat.com>
CC: stable@kernel.org
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/edac.txt')
0 files changed, 0 insertions, 0 deletions