Re: [PATCH] driver core:firmware_class:fix memory leak of pagepointers array

From: Greg KH
Date: Thu Jul 16 2009 - 18:47:45 EST


On Thu, Jul 16, 2009 at 09:22:33PM +0800, Ming Lei wrote:
> 2009/7/11 Ming Lei <tom.leiming@xxxxxxxxx>:
> > On Fri, 10 Jul 2009 10:36:49 -0700
> > Greg KH <greg@xxxxxxxxx> wrote:
> >
> >> On Thu, Jul 09, 2009 at 08:20:48AM +0800, Ming Lei wrote:
> >> > 2009/7/9  <tom.leiming@xxxxxxxxx>:
> >> > > From: Ming Lei <tom.leiming@xxxxxxxxx>
> >> > >
> >> > > The page pointers array is allocated in fw_realloc_buffer()
> >> > > called by firmware_data_write(), and should be freed in release
> >> > > function of firmware device.
> >> > >
> >> > > Signed-off-by:Ming Lei <tom.leiming@xxxxxxxxx>
> >> > > Reported-by:Catalin Marinas <catalin.marinas@xxxxxxx>
> >> > > Acked-by: David Woodhouse <David.Woodhouse@xxxxxxxxx>
> >> >
> >> > ---
> >> > This patch is against Catalin Marinas's patch:
> >> >     [PATCH] Free struct device in fw_dev_release()
> >>
> >> Hm, I never got a final version of that patch, care to send it to me?
>
> Hi,Greg
>
> Care to queue the patch into your driver-core tree and send it to -rc4?

Now queued up.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/