diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-17 22:46:21 (GMT) |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-17 22:46:21 (GMT) |
commit | 8f22a72bf52e76d6bcd11bf9e695fdde61bd454c (patch) | |
tree | a08eba9552a209b8a232b48925e5eea6699be298 /drivers | |
parent | 4f0eee4d877e3b617b6a22d209d52b3dfca2b2a7 (diff) | |
download | linux-fsl-qoriq-8f22a72bf52e76d6bcd11bf9e695fdde61bd454c.tar.xz |
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')
-rw-r--r-- | drivers/ide/ide-acpi.c | 2 |
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; |