Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754046Ab0D1NHh (ORCPT ); Wed, 28 Apr 2010 09:07:37 -0400 Received: from mail-bw0-f219.google.com ([209.85.218.219]:47662 "EHLO mail-bw0-f219.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750859Ab0D1NHf convert rfc822-to-8bit (ORCPT ); Wed, 28 Apr 2010 09:07:35 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=mjR2hLW8E9Xvm/QKUaqCkiYWW6FDRT8AHZ67jrlCoZC9xMHHd1IVa8LFOZOmeMi6zC Vavaulovf9fkEJTED+mrA7de975bXBCst+HIF3IXNse9BBObbpjzivdfuk5t27yY0Knx JA8xEW+V7P/UvZ+kMGU0OBa7KEOCIHjNhQu7M= MIME-Version: 1.0 In-Reply-To: References: <20100425193658.GA24039@kroah.com> <1272295140.2434.8.camel@yio.site> <1272372187.5484.3981.camel@macbook.infradead.org> Date: Wed, 28 Apr 2010 16:07:34 +0300 Message-ID: Subject: Re: request_firmware API exhaust memory From: Tomas Winkler To: Kay Sievers Cc: David Woodhouse , dhowells@redhat.com, Greg KH , Johannes Berg , "Rafael J. Wysocki" , Emmanuel Grumbach , linux-kernel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1149 Lines: 33 On Wed, Apr 28, 2010 at 11:23 AM, Kay Sievers wrote: > On Tue, Apr 27, 2010 at 15:34, Kay Sievers wrote: >> On Tue, Apr 27, 2010 at 14:43, David Woodhouse wrote: >>> This untested patch attempts to put the page array into the 'struct >>> firmware' so that we can free it from release_firmware(). >> >> Looks good. Seems to work without problems and without leaking memory. >> >> Misses only the member in the struct firmware though. :) > > Thomas, any chance to test David's patch, if that solves the issues you've seen? > > Just add the missing line: > > --- a/include/linux/firmware.h > +++ b/include/linux/firmware.h > @@ -12,6 +12,7 @@ >  struct firmware { >        size_t size; >        const u8 *data; > +       struct page **pages; >  }; > > In progress. Will post results later today (timezone:GMT+2) Thanks Tomas -- 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/