diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/hw/ahci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/hw/ahci.c b/src/hw/ahci.c index 97a072a..d45b430 100644 --- a/src/hw/ahci.c +++ b/src/hw/ahci.c @@ -345,6 +345,7 @@ ahci_port_alloc(struct ahci_ctrl_s *ctrl, u32 pnr) warn_noalloc(); return NULL; } + memset(port, 0, sizeof(*port)); port->pnr = pnr; port->ctrl = ctrl; port->list = memalign_tmp(1024, 1024); |