[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20090913.232548.253168283.anemo@mba.ocn.ne.jp>
Date: Sun, 13 Sep 2009 23:25:48 +0900 (JST)
From: Atsushi Nemoto <anemo@....ocn.ne.jp>
To: julia@...u.dk
Cc: ralf@...ux-mips.org, linux-mips@...ux-mips.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH 1/8] arch/mips/txx9: introduce missing kfree, iounmap
On Fri, 11 Sep 2009 18:21:00 +0200 (CEST), Julia Lawall <julia@...u.dk> wrote:
> From: Julia Lawall <julia@...u.dk>
>
> Error handling code following a kzalloc should free the allocated data.
> Error handling code following an ioremap should iounmap the allocated data.
>
> The semantic match that finds the first problem is as follows:
> (http://www.emn.fr/x-info/coccinelle/)
Thank you for finding this out.
This patch add some correctness, but obviously incomplete: there are
more error pathes without iounmap/kfree/etc. in this function.
And I like goto-style cleanup, as Mark Brown said in reply for your
sound/soc patch.
Could you make a new patch?
---
Atsushi Nemoto
--
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