[alsa-devel] [PATCH 3/3] sound/pci: Eliminate use after free
Takashi Iwai
tiwai at suse.de
Sun Apr 4 12:22:29 CEST 2010
At Fri, 2 Apr 2010 14:47:59 +0200 (CEST),
Julia Lawall wrote:
>
> From: Julia Lawall <julia at diku.dk>
>
> 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 at diku.dk>
Applied now. Thanks.
Takashi
More information about the Alsa-devel
mailing list