From patchwork Mon Apr 26 22:23:37 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 95222 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 o3QMOOHt014081 for ; Mon, 26 Apr 2010 22:24:24 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755180Ab0DZWX6 (ORCPT ); Mon, 26 Apr 2010 18:23:58 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:63937 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755107Ab0DZWX4 (ORCPT ); Mon, 26 Apr 2010 18:23:56 -0400 Received: by wyb42 with SMTP id 42so303372wyb.19 for ; Mon, 26 Apr 2010 15:23:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=nnP1+qDotwNrC7JVNuhCBzEJWXiVDfl1UV6MH96e/CE=; b=evzIEtTE2pY6bpSi7SN4QnPkLPFXHlc+aUqLMjrWkfmkMyEdgQ7vav8bMLvKCCMXtr Zdvc3r//wXru/w/1vMNJ4hRwx4FdyEtmKt4IXFjjkY0/lQgEFESlIBohEkRFCWmk8bN1 Z95yit7CbUrTln3Nyu+Pq+qQSldBEK44ztPYc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=ptjPWPaMzhqNNYqWd/2e+k6965Tuc9NdSB5XJQLxFWtz0oxA4sZIDKnO+1bHGUnlD+ vn+nyjE1soktHcPY669vhpg6h9qVgSodvgwWmxV1eEQi9aPe7ftkDPX28DmlOz0u5mVB ZJGI9gpeUm1L5XUfRhE0vviJnS9EgYSmTqplk= Received: by 10.216.88.68 with SMTP id z46mr944837wee.215.1272320634581; Mon, 26 Apr 2010 15:23:54 -0700 (PDT) Received: from bicker ([205.177.176.130]) by mx.google.com with ESMTPS id r29sm2629056wbv.3.2010.04.26.15.23.43 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 26 Apr 2010 15:23:54 -0700 (PDT) Date: Tue, 27 Apr 2010 00:23:37 +0200 From: Dan Carpenter To: Bjorn Helgaas Cc: Len Brown , Shaohua Li , Zhang Rui , Zhao Yakui , linux-acpi@vger.kernel.org, vegardno@ifi.uio.no, casteyde.christian@free.fr Subject: [patch v2] acpi: silence kmemcheck false positive Message-ID: <20100426222337.GX29093@bicker> References: <20100422194346.GB29093@bicker> <20100422200220.GC29093@bicker> <201004221632.21129.bjorn.helgaas@hp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <201004221632.21129.bjorn.helgaas@hp.com> 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, 26 Apr 2010 22:24:26 +0000 (UTC) diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 37132dc..743576b 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -527,7 +527,7 @@ int acpi_bus_generate_proc_event4(const char *device_class, const char *bus_id, if (!event_is_open) return 0; - event = kmalloc(sizeof(struct acpi_bus_event), GFP_ATOMIC); + event = kzalloc(sizeof(struct acpi_bus_event), GFP_ATOMIC); if (!event) return -ENOMEM;