diff options
| author | Andreas Färber | 2013-08-01 01:59:47 +0200 |
|---|---|---|
| committer | Anthony Liguori | 2013-08-01 18:18:24 +0200 |
| commit | 27915efb974999dd256a6c432a17432d9d84e606 (patch) | |
| tree | 48beacbead44bf35e5492ce19a96bb2bfeb65584 /include/exec/memory.h | |
| parent | Merge remote-tracking branch 'luiz/queue/qmp' into staging (diff) | |
| download | qemu-27915efb974999dd256a6c432a17432d9d84e606.tar.gz qemu-27915efb974999dd256a6c432a17432d9d84e606.tar.xz qemu-27915efb974999dd256a6c432a17432d9d84e606.zip | |
virtio-9p-device: Avoid freeing uninitialized memory
In virtio_9p_device_init() there are 6x goto out that will lead to
v9fs_path_free() attempting to free unitialized path.data field.
Easiest way to trigger is: qemu-system-x86_64 -device virtio-9p-pci
Fix this by moving v9fs_path_init() before any goto out.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Message-id: 1375315187-16534-1-git-send-email-afaerber@suse.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'include/exec/memory.h')
0 files changed, 0 insertions, 0 deletions
