aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-acpi.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-17 18:46:21 -0400
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-17 18:46:21 -0400
commit8f22a72bf52e76d6bcd11bf9e695fdde61bd454c (patch)
treea08eba9552a209b8a232b48925e5eea6699be298 /drivers/ide/ide-acpi.c
parent4f0eee4d877e3b617b6a22d209d52b3dfca2b2a7 (diff)
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>
Diffstat (limited to 'drivers/ide/ide-acpi.c')
-rw-r--r--drivers/ide/ide-acpi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/ide/ide-acpi.c b/drivers/ide/ide-acpi.c
index e07b189f3ec8..0f6fb6b72dd9 100644
--- a/drivers/ide/ide-acpi.c
+++ b/drivers/ide/ide-acpi.c
@@ -710,6 +710,8 @@ void ide_acpi_port_init_devices(ide_hwif_t *hwif)
710 for (i = 0; i < MAX_DRIVES; i++) { 710 for (i = 0; i < MAX_DRIVES; i++) {
711 drive = &hwif->drives[i]; 711 drive = &hwif->drives[i];
712 712
713 memset(drive->acpidata, 0, sizeof(*drive->acpidata));
714
713 if (!drive->present) 715 if (!drive->present)
714 continue; 716 continue;
715 717