Skip to content

Commit

Permalink
ide-acpi: add missing drive->acpidata zeroing
Browse files Browse the repository at this point in the history
There should be no functionality changes caused by this patch.

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Apr 17, 2008
1 parent 4f0eee4 commit 8f22a72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/ide/ide-acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 8f22a72

Please sign in to comment.