]> Git Repo - qemu.git/commit
virtio-9p-device: Avoid freeing uninitialized memory
authorAndreas Färber <[email protected]>
Wed, 31 Jul 2013 23:59:47 +0000 (01:59 +0200)
committerAnthony Liguori <[email protected]>
Thu, 1 Aug 2013 16:18:24 +0000 (11:18 -0500)
commit27915efb974999dd256a6c432a17432d9d84e606
tree48beacbead44bf35e5492ce19a96bb2bfeb65584
parentd5a2bcf70e81b67cbc4947f5065db8fc9bfc1465
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 <[email protected]>
Signed-off-by: Andreas Färber <[email protected]>
Message-id: 1375315187[email protected]
Signed-off-by: Anthony Liguori <[email protected]>
hw/9pfs/virtio-9p-device.c
This page took 0.024903 seconds and 4 git commands to generate.