aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorAmit Shah <[email protected]>2011-03-04 03:34:33 +0000
committerLinus Torvalds <[email protected]>2011-03-06 18:44:13 +0000
commitd7a62cd0332115d4c7c4689abea0d889a30d8349 (patch)
treeced474d2ff1959576ac55f760bbafbe1073af11a /tools/perf/util/trace-event-scripting.c
parentMerge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/sag... (diff)
downloadkernel-d7a62cd0332115d4c7c4689abea0d889a30d8349.tar.gz
kernel-d7a62cd0332115d4c7c4689abea0d889a30d8349.zip
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 <[email protected]> CC: [email protected] Signed-off-by: Amit Shah <[email protected]> Signed-off-by: Rusty Russell <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions