Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8f22a72b authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz
Browse files

ide-acpi: add missing drive->acpidata zeroing



There should be no functionality changes caused by this patch.

Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 4f0eee4d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;