From patchwork Thu Apr 22 19:43:46 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 94278 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 o3MJlFAU025059 for ; Thu, 22 Apr 2010 19:47:15 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757422Ab0DVToL (ORCPT ); Thu, 22 Apr 2010 15:44:11 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:62007 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757424Ab0DVToI (ORCPT ); Thu, 22 Apr 2010 15:44:08 -0400 Received: by wyb39 with SMTP id 39so5103048wyb.19 for ; Thu, 22 Apr 2010 12:44:06 -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:mime-version:content-type:content-disposition:user-agent; bh=MInFtE3VigTF9DL5oHrVfMjhZMhs7nQD2c5nIUhfKi8=; b=HKSq89gZKHxy53JUO89UcVu1c15cynExu7O3L83kvQENlT2ffIYg6Y/ffjoR0Lk33M a1uXiM/C/fUfaDNvyojxCSXWYwEkZdaJ5/4d+MpHCac107Bxj1cc/lCoPnWI33oo+djV Jn4JztvSESFN4slIk7EwDgVV/lCVlAdX2T36k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=JUZXFV+jf3Ka6Aupq4IMbxqYAUIazzcoQEC4dZR3PDXoPe43iDHBnFklyh16/VoyBi jubPgyA0Wm4jnfz6ZrLmbOsLhvTmM5/RrQkBZFIDCuP+aDFUgk/o13FqV1EtTy5oPGp+ ZqZ7ViVucqUKVWWme+gP4My+kyvhQgC+hCeGY= Received: by 10.216.86.196 with SMTP id w46mr302942wee.201.1271965445983; Thu, 22 Apr 2010 12:44:05 -0700 (PDT) Received: from bicker ([205.177.176.130]) by mx.google.com with ESMTPS id u14sm487618gvf.17.2010.04.22.12.43.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 22 Apr 2010 12:44:05 -0700 (PDT) Date: Thu, 22 Apr 2010 21:43:46 +0200 From: Dan Carpenter To: Len Brown Cc: Bjorn Helgaas , Shaohua Li , Zhang Rui , Zhao Yakui , linux-acpi@vger.kernel.org, vegardno@ifi.uio.no Subject: [patch] acpi: silence kmemcheck false positive Message-ID: <20100422194346.GB29093@bicker> MIME-Version: 1.0 Content-Disposition: inline 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]); Thu, 22 Apr 2010 19:47:15 +0000 (UTC) diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index 37132dc..4ef7c97 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 = kmalloc(sizeof(struct acpi_bus_event), GFP_ATOMIC | __GFP_NOTRACK_FALSE_POSITIVE); if (!event) return -ENOMEM;