summaryrefslogtreecommitdiffstats
path: root/hw/pci.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin2011-05-15 18:27:34 +0200
committerMichael S. Tsirkin2011-05-16 13:23:45 +0200
commit69c8944f17cb6c084567a16c080cfa7bc780e668 (patch)
treeb1716ac16dc07d04f3dce3c92148bc06cb5d6c82 /hw/pci.c
parentMerge remote branch 'origin/master' into pci (diff)
downloadqemu-69c8944f17cb6c084567a16c080cfa7bc780e668.tar.gz
qemu-69c8944f17cb6c084567a16c080cfa7bc780e668.tar.xz
qemu-69c8944f17cb6c084567a16c080cfa7bc780e668.zip
ich/ahci: fix uninitialized memory use
The commit 667bb59d2358daeef179583c944becba3f1f9680 uses d->ahci.mem before it is initialized by ahci_init(). Fix this by calling ahci_init() first thing so that it's safe to use all fields in the ahci state struct. Reported-by: Alexey Zaytsev <alexey.zaytsev@gmail.com> Reported-by: Jan Kiszka <jan.kiszka@web.de> Tested-by: Alexey Zaytsev <alexey.zaytsev@gmail.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci.c')
0 files changed, 0 insertions, 0 deletions