From patchwork Mon Feb 1 17:35:18 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Chiang X-Patchwork-Id: 76123 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o11HZNOC003326 for ; Mon, 1 Feb 2010 17:35:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752760Ab0BARfV (ORCPT ); Mon, 1 Feb 2010 12:35:21 -0500 Received: from g6t0186.atlanta.hp.com ([15.193.32.63]:8842 "EHLO g6t0186.atlanta.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751054Ab0BARfU (ORCPT ); Mon, 1 Feb 2010 12:35:20 -0500 Received: from g1t0039.austin.hp.com (g1t0039.austin.hp.com [16.236.32.45]) by g6t0186.atlanta.hp.com (Postfix) with ESMTP id 44A812C03E; Mon, 1 Feb 2010 17:35:19 +0000 (UTC) Received: from ldl (ldl.fc.hp.com [15.11.146.30]) by g1t0039.austin.hp.com (Postfix) with ESMTP id D611B340C0; Mon, 1 Feb 2010 17:35:18 +0000 (UTC) Received: from localhost (ldl.fc.hp.com [127.0.0.1]) by ldl (Postfix) with ESMTP id A7B50CF000E; Mon, 1 Feb 2010 10:35:18 -0700 (MST) Received: from ldl ([127.0.0.1]) by localhost (ldl.fc.hp.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ru8byc+H1P7a; Mon, 1 Feb 2010 10:35:18 -0700 (MST) Received: by ldl (Postfix, from userid 17609) id 91C24CF0007; Mon, 1 Feb 2010 10:35:18 -0700 (MST) Date: Mon, 1 Feb 2010 10:35:18 -0700 From: Alex Chiang To: lenb@kernel.org, Chris Mason , linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: stable@kernel.org Subject: Re: [PATCH] set dock_station->flags to zero during dock_add Message-ID: <20100201173518.GA28002@ldl.fc.hp.com> References: <20100201163043.GA3240@think> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20100201163043.GA3240@think> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Mon, 01 Feb 2010 17:35:23 +0000 (UTC) diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c index bbc2c13..b2586f5 100644 --- a/drivers/acpi/dock.c +++ b/drivers/acpi/dock.c @@ -935,6 +935,7 @@ static int dock_add(acpi_handle handle) struct platform_device *dd; id = dock_station_count; + memset(&ds, 0, sizeof(ds)); dd = platform_device_register_data(NULL, "dock", id, &ds, sizeof(ds)); if (IS_ERR(dd)) return PTR_ERR(dd);