commit | 8f22a72bf52e76d6bcd11bf9e695fdde61bd454c | [log] [tgz] |
---|---|---|
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | Fri Apr 18 00:46:21 2008 +0200 |
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | Fri Apr 18 00:46:21 2008 +0200 |
tree | a08eba9552a209b8a232b48925e5eea6699be298 | |
parent | 4f0eee4d877e3b617b6a22d209d52b3dfca2b2a7 [diff] [blame] |
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>
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 @@ for (i = 0; i < MAX_DRIVES; i++) { drive = &hwif->drives[i]; + memset(drive->acpidata, 0, sizeof(*drive->acpidata)); + if (!drive->present) continue;