[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4FF161BC.8010104@mev.co.uk>
Date: Mon, 2 Jul 2012 09:54:20 +0100
From: Ian Abbott <abbotti@....co.uk>
To: Dan Carpenter <dan.carpenter@...cle.com>
CC: Devendra Naga <devendra.aaru@...il.com>,
Ian Abbott <ian.abbott@....co.uk>,
Mori Hess <fmhess@...rs.sourceforge.net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
H Hartley Sweeten <hsweeten@...ionengravers.com>,
"devel@...verdev.osuosl.org" <devel@...verdev.osuosl.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH V2 2/2] staging/comedi/drivers: free allocated priv and
release resources if comedi_alloc_subdevices
On 2012-07-01 16:32, Dan Carpenter wrote:
> On Sun, Jul 01, 2012 at 07:12:07PM +0530, Devendra Naga wrote:
>> as comedi_alloc_subdevices may fail, we leak out the memory allocated by alloc_private,
>> and also the I/O regions we requested.
>>
>> free out the private data pointer of the driver, and release the I/O regions.
>>
>> Signed-off-by: Devendra Naga <devendra.aaru@...il.com>
>
> This breaks the build.
>
> Also Hartley and Ian, what's the point of alloc_private()? It's
> just hiding stuff which we need to know about and use later on
> anyway.
Granted, it was more useful before we got kzalloc()!
--
-=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@....co.uk> )=-
-=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists