[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100926194156.GA25491@albatros>
Date: Sun, 26 Sep 2010 23:41:57 +0400
From: Vasiliy Kulikov <segooon@...il.com>
To: Dan Carpenter <error27@...il.com>, kernel-janitors@...r.kernel.org,
Greg Kroah-Hartman <gregkh@...e.de>,
Marek Belisko <marek.belisko@...il.com>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: ft1000: fix error path
On Sun, Sep 26, 2010 at 15:11 +0200, Dan Carpenter wrote:
> On Sun, Sep 26, 2010 at 12:59:55PM +0400, Vasiliy Kulikov wrote:
> > +err_free:
> > + for (i--; i>=0; i--) {
> > + kfree(pdpram_blk->pbuffer);
> > + kfree(pdpram_blk);
> > + }
>
> This is wrong.
Of course, I'm very careless. Pointers are linked into the list and the right code
should loop the list and free both pointers. I'll post patch v2 tomorrow.
--
Vasiliy
--
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