From: Bartlomiej Zolnierkiewicz Date: Thu, 17 Apr 2008 22:46:21 +0000 (+0200) Subject: ide-acpi: add missing drive->acpidata zeroing X-Git-Tag: v2.6.26-rc1~1148^2~53 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8f22a72bf52e76d6bcd11bf9e695fdde61bd454c;p=linux-2.6-omap-h63xx.git ide-acpi: add missing drive->acpidata zeroing There should be no functionality changes caused by this patch. Signed-off-by: Bartlomiej Zolnierkiewicz --- diff --git a/drivers/ide/ide-acpi.c b/drivers/ide/ide-acpi.c index e07b189f3ec..0f6fb6b72dd 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) for (i = 0; i < MAX_DRIVES; i++) { drive = &hwif->drives[i]; + memset(drive->acpidata, 0, sizeof(*drive->acpidata)); + if (!drive->present) continue;