Re: [PATCH] Memory leak in mtd/chips/cfi_cmdset_0020

From: David Woodhouse
Date: Mon Oct 06 2003 - 09:47:11 EST


On Mon, 2003-10-06 at 11:45 -0300, Felipe W Damasio wrote:
> Hi David,
>
> Patch against 2.6.0-test6.
>
> - Frees a previous allocated kmalloced variable before returning NULL;
>
> Found by smatch.

Applied; thanks. It'll be in the next update sent to Linus, when I get a
few spare moments for merging and testing.

Out of interest, why didn't smatch also find the same error 25 lines
further down?

--
dwmw2
-
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/