ich/ahci: fix uninitialized memory use
The commit 667bb59d 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: NAlexey Zaytsev <alexey.zaytsev@gmail.com> Reported-by: NJan Kiszka <jan.kiszka@web.de> Tested-by: NAlexey Zaytsev <alexey.zaytsev@gmail.com> Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
Showing
想要评论请 注册 或 登录