Skip to contentSkip to conversation

ACPI: Fix crash on ASUS laptops

PATCH Applied Tero Roponen 3 participants 3 messages Jan 17, 2009 – Jan 18, 2009 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: Fix crash on ASUS laptops

This patch fixes the crash I experienced in 2.6.29-rc2. Tested on ASUS M50vm.

drivers/acpi/ec.c +1 -1
index a2b82c9..5c2f5d3 100644
@@ -982,7 +982,7 @@ int __init acpi_ec_ecdt_probe(void)
 		saved_ec = kmalloc(sizeof(struct acpi_ec), GFP_KERNEL);
 		if (!saved_ec)
 			return -ENOMEM;
-		memcpy(&saved_ec, boot_ec, sizeof(saved_ec));
+		memcpy(saved_ec, boot_ec, sizeof(*saved_ec));
 	/* fall through */
 	}
 	/* This workaround is needed only on some broken machines,
#1 lore raw

Thanks, ACK
Alex.

Quoted 18 lines · Tero Roponen

This patch fixes the crash I experienced in 2.6.29-rc2. Tested on ASUS M50vm.

drivers/acpi/ec.c +1 -1
index a2b82c9..5c2f5d3 100644
@@ -982,7 +982,7 @@ int __init acpi_ec_ecdt_probe(void)
 		saved_ec = kmalloc(sizeof(struct acpi_ec), GFP_KERNEL);
 		if (!saved_ec)
 			return -ENOMEM;
-		memcpy(&saved_ec, boot_ec, sizeof(saved_ec));
+		memcpy(saved_ec, boot_ec, sizeof(*saved_ec));
 	/* fall through */
 	}
 	/* This workaround is needed only on some broken machines,
reviewer Applied
#2 lore raw

applied.

thanks,
--
Len Brown, Intel Open Source Technology Center

Quoted 27 lines · Alexey Starikovskiy

Thanks, ACK
Alex.

Quoted 10 lines · Tero Roponen

This patch fixes the crash I experienced in 2.6.29-rc2. Tested on ASUS M50vm.

drivers/acpi/ec.c +0 -0
index a2b82c9..5c2f5d3 100644

drivers/acpi/ec.c int __init acpi_ec_ecdt_probe(void) · line 988

Quoted 8 lines
drivers/acpi/ec.c +1 -1
@@ -982,7 +982,7 @@ int __init acpi_ec_ecdt_probe(void)
 		saved_ec = kmalloc(sizeof(struct acpi_ec), GFP_KERNEL);
 		if (!saved_ec)
 			return -ENOMEM;
-		memcpy(&saved_ec, boot_ec, sizeof(saved_ec));
+		memcpy(saved_ec, boot_ec, sizeof(*saved_ec));
 	/* fall through */
 	}
 	/* This workaround is needed only on some broken machines,

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html