Re: [PATCH 3/3] sound/pci: Eliminate use after free

From: Takashi Iwai
Date: Sun Apr 04 2010 - 06:22:39 EST


At Fri, 2 Apr 2010 14:47:59 +0200 (CEST),
Julia Lawall wrote:
>
> From: Julia Lawall <julia@xxxxxxx>
>
> Use the call to snd_card_free in the error handling code at the end of the
> function, as in the other error cases.
>
> A simplified version of the semantic patch that finds this problem is as
> follows: (http://coccinelle.lip6.fr/)
>
> // <smpl>
> @@
> expression E,E2;
> @@
>
> snd_card_free(E)
> ...
> (
> E = E2
> |
> * E
> )
> // </smpl>
>
> Signed-off-by: Julia Lawall <julia@xxxxxxx>

Applied now. Thanks.


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