mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-18 23:52:14 -06:00
libqos/ahci: Zero-fill AHCI headers
Even though it's just the reserved space, make sure they're zeroes. Signed-off-by: John Snow <jsnow@redhat.com> Message-id: 1424905602-24715-2-git-send-email-jsnow@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
baca2b9e3a
commit
4a42f6d408
1 changed files with 1 additions and 1 deletions
|
@ -487,7 +487,7 @@ void ahci_get_command_header(AHCIQState *ahci, uint8_t port,
|
||||||
void ahci_set_command_header(AHCIQState *ahci, uint8_t port,
|
void ahci_set_command_header(AHCIQState *ahci, uint8_t port,
|
||||||
uint8_t slot, AHCICommandHeader *cmd)
|
uint8_t slot, AHCICommandHeader *cmd)
|
||||||
{
|
{
|
||||||
AHCICommandHeader tmp;
|
AHCICommandHeader tmp = { .flags = 0 };
|
||||||
uint64_t ba = ahci->port[port].clb;
|
uint64_t ba = ahci->port[port].clb;
|
||||||
ba += slot * sizeof(AHCICommandHeader);
|
ba += slot * sizeof(AHCICommandHeader);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue