summaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-acpi.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-18 00:46:21 +0200
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2008-04-18 00:46:21 +0200
commit8f22a72bf52e76d6bcd11bf9e695fdde61bd454c (patch)
treea08eba9552a209b8a232b48925e5eea6699be298 /drivers/ide/ide-acpi.c
parent4f0eee4d877e3b617b6a22d209d52b3dfca2b2a7 (diff)
downloadop-kernel-dev-8f22a72bf52e76d6bcd11bf9e695fdde61bd454c.zip
op-kernel-dev-8f22a72bf52e76d6bcd11bf9e695fdde61bd454c.tar.gz
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 e07b189..0f6fb6b 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;
OpenPOWER on IntegriCloud