ide-acpi: add missing drive->acpidata zeroing
There should be no functionality changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
This commit is contained in:
parent
4f0eee4d87
commit
8f22a72bf5
|
@ -710,6 +710,8 @@ void ide_acpi_port_init_devices(ide_hwif_t *hwif)
|
|||
for (i = 0; i < MAX_DRIVES; i++) {
|
||||
drive = &hwif->drives[i];
|
||||
|
||||
memset(drive->acpidata, 0, sizeof(*drive->acpidata));
|
||||
|
||||
if (!drive->present)
|
||||
continue;
|
||||
|
||||
|
|
Loading…
Reference in New Issue