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

Commit 4312495f authored by Tero Roponen's avatar Tero Roponen Committed by Len Brown
Browse files

ACPI: Fix crash on ASUS laptops



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

Signed-off-by: default avatarTero Roponen <tero.roponen@gmail.com>
Acked-by: default avatarAlexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 1de9e8e7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,