From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753603Ab0DDKWg (ORCPT ); Sun, 4 Apr 2010 06:22:36 -0400 Received: from cantor.suse.de ([195.135.220.2]:45288 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753170Ab0DDKWa (ORCPT ); Sun, 4 Apr 2010 06:22:30 -0400 Date: Sun, 04 Apr 2010 12:22:29 +0200 Message-ID: From: Takashi Iwai To: Julia Lawall Cc: Jaroslav Kysela , alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH 3/3] sound/pci: Eliminate use after free In-Reply-To: References: User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.1 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org At Fri, 2 Apr 2010 14:47:59 +0200 (CEST), Julia Lawall wrote: > > From: Julia Lawall > > 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/) > > // > @@ > expression E,E2; > @@ > > snd_card_free(E) > ... > ( > E = E2 > | > * E > ) > // > > Signed-off-by: Julia Lawall Applied now. Thanks. Takashi