Re: [PATCH 4/6] drivers/pci: introduce missing kfree

From: Jesse Barnes
Date: Fri Feb 13 2009 - 16:16:44 EST


On Sunday, February 8, 2009 1:45 pm Julia Lawall wrote:
> From: Julia Lawall <julia@xxxxxxx>
>
> Error handling code following a kmalloc should free the allocated data.
> Since the subsequent code that could provoke an error does not use the
> allocated data, the allocation is just moved below it.
>
> The semantic match that finds the problem is as follows:
> (http://www.emn.fr/x-info/coccinelle/)

Applied to my linux-next branch, thanks.
--
Jesse Barnes, Intel Open Source Technology Center
--
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/