From patchwork Sat Jan 17 11:06:02 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Roponen X-Patchwork-Id: 2935 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n0HB1buM032722 for ; Sat, 17 Jan 2009 03:01:38 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752148AbZAQLFz (ORCPT ); Sat, 17 Jan 2009 06:05:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755508AbZAQLFz (ORCPT ); Sat, 17 Jan 2009 06:05:55 -0500 Received: from ey-out-2122.google.com ([74.125.78.26]:50409 "EHLO ey-out-2122.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755497AbZAQLFy (ORCPT ); Sat, 17 Jan 2009 06:05:54 -0500 Received: by ey-out-2122.google.com with SMTP id 22so373480eye.37 for ; Sat, 17 Jan 2009 03:05:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:x-x-sender:to:cc :subject:message-id:user-agent:mime-version:content-type; bh=ivPkXIoYqWMi5p6NQF/EiTULCQ+85elJfkSJ6X8DIGQ=; b=lgSuDngHhp7px8pokvt7SCmeTlokdzVdEpawKdfP71vrxU9WBp0+l+6iP+FtkioehX QCmmWrKMF8OMCCrghs2jm2iiZal1hsCFlh2g7Ovc8ha7fMaNObmvWFbz4WnOeh0TlEfu r/N1B5OkX9WD7Vs6i/gDgdVIDPGg5ZyNc8UP0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:x-x-sender:to:cc:subject:message-id:user-agent :mime-version:content-type; b=Frmhph/lWCiP5gzfC/GjvY9UHoA50TmH7u/2a+qfuxifffvnSoSuvIAUPaNR5/B2vs gzWiPrHFJ1RqVjayfBktN3z4ofuEJKifYsIKQHknlZfOCBeSAqvrVVlBtvDm2pbUEtuj v6MbWJdI6ZmR6ifl/M5Z64rkGP/YWwsgk4Tq8= Received: by 10.210.60.3 with SMTP id i3mr313336eba.115.1232190352824; Sat, 17 Jan 2009 03:05:52 -0800 (PST) Received: from arirop ([88.195.185.117]) by mx.google.com with ESMTPS id h7sm4284938nfh.27.2009.01.17.03.05.50 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 17 Jan 2009 03:05:52 -0800 (PST) Date: Sat, 17 Jan 2009 13:06:02 +0200 (EET) From: Tero Roponen X-X-Sender: terrop@localhost.localdomain To: linux-acpi@vger.kernel.org cc: astarikovskiy@suse.de, len.brown@intel.com Subject: [PATCH] ACPI: Fix crash on ASUS laptops Message-ID: User-Agent: Alpine 2.00 (LFD 1167 2008-08-23) MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org This patch fixes the crash I experienced in 2.6.29-rc2. Tested on ASUS M50vm. Signed-off-by: Tero Roponen --- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c index a2b82c9..5c2f5d3 100644 --- a/drivers/acpi/ec.c +++ b/drivers/acpi/ec.c @@ -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,