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:
Bartlomiej Zolnierkiewicz 2008-04-18 00:46:21 +02:00
parent 4f0eee4d87
commit 8f22a72bf5
1 changed files with 2 additions and 0 deletions

View File

@ -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;