Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753361Ab0AJKil (ORCPT ); Sun, 10 Jan 2010 05:38:41 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753096Ab0AJKik (ORCPT ); Sun, 10 Jan 2010 05:38:40 -0500 Received: from mail-bw0-f227.google.com ([209.85.218.227]:52763 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752850Ab0AJKij (ORCPT ); Sun, 10 Jan 2010 05:38:39 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=vDuQChEgLw5zeNlDCSMIeCZF3UtkCD75PWCmxf4z3ULzlVbWALm32lk2KNkg/uRVck V39pWm1jExy8rGCyXRA78FkJJeJl0FZxSlZgtNibzWEFg8yONmeHNABmCXZ0MBcmsIDB sKvLNjQv2C/rc6fvHlTywW8yRPmDxnstzAjSg= MIME-Version: 1.0 In-Reply-To: <20100110074529.GF7840@bicker> References: <20100110074529.GF7840@bicker> Date: Sun, 10 Jan 2010 10:38:37 +0000 Message-ID: <9b2b86521001100238x5c373f7x856a255e940baa5d@mail.gmail.com> Subject: Re: [patch] hp-wmi: fix double free From: Alan Jenkins To: Dan Carpenter , linux-kernel@vger.kernel.org Cc: ACPI Devel Maling List Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1106 Lines: 31 On 1/10/10, Dan Carpenter wrote: > kfree(obj) was called earlier. > > This was found by smatch and has only been compile tested. :/ I don't see hp-wmi in MAINTAINERS, but in general platform drivers go via the ACPI tree. It looks like several others have discovered this issue the hard way :-). . Fortunately it has been fixed in the acpi tree and now submitted to Linus. . Regards Alan > --- orig/drivers/platform/x86/hp-wmi.c 2010-01-09 21:43:13.000000000 +0300 > +++ devel/drivers/platform/x86/hp-wmi.c 2010-01-09 21:43:28.000000000 +0300 > @@ -388,8 +388,6 @@ static void hp_wmi_notify(u32 value, voi > } else > printk(KERN_INFO "HP WMI: Unknown key pressed - %x\n", > eventcode); > - > - kfree(obj); > } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/