« Previous | Next » 

Revision 69c8944f

ID69c8944f17cb6c084567a16c080cfa7bc780e668

Added by Michael S. Tsirkin about 13 years ago

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 <>
Reported-by: Jan Kiszka <>
Tested-by: Alexey Zaytsev <>
Signed-off-by: Michael S. Tsirkin <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences