]> Git Repo - qemu.git/commit
ich/ahci: fix uninitialized memory use
authorMichael S. Tsirkin <[email protected]>
Sun, 15 May 2011 16:27:34 +0000 (19:27 +0300)
committerMichael S. Tsirkin <[email protected]>
Mon, 16 May 2011 11:23:45 +0000 (14:23 +0300)
commit69c8944f17cb6c084567a16c080cfa7bc780e668
treeb1716ac16dc07d04f3dce3c92148bc06cb5d6c82
parent5300f1a5487f67f0bde8ee1081b799108668cb1d
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 <[email protected]>
Reported-by: Jan Kiszka <[email protected]>
Tested-by: Alexey Zaytsev <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/ide/ich.c
This page took 0.02244 seconds and 4 git commands to generate.