From: Takashi Iwai Subject: Re: [PATCH] rme96 Add missing vmalloc.h inclusion Date: Thu, 22 Aug 2013 23:25:15 +0200 Message-ID: References: <51FF9C55.80701@t-online.de> <51FFA643.7060504@ladisch.de> <52013579.7020304@t-online.de> <52037864.9000205@t-online.de> <520A0B2C.7060500@t-online.de> <520AA125.5010803@t-online.de> <520C6EA1.8090608@t-online.de> <520C8069.7090800@t-online.de> <52146FD6.7000305@t-online.de> <52160CDE.4070306@t-online.de> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 9EB8026550C for ; Thu, 22 Aug 2013 23:23:29 +0200 (CEST) In-Reply-To: <52160CDE.4070306@t-online.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Knut Petersen Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 22 Aug 2013 15:06:38 +0200, Knut Petersen wrote: > > [1 ] > On 22.08.2013 10:53, Takashi Iwai wrote: > > Actually this triggers the double free. It's freed in > > snd_rme96_free() via snd_card_free(). > Yes. Now I see that. > > I applied the patch with removal of this double vfree call. > Thanks. > > Unfortunately there still is a problem with the code: > vmalloc() and vfree() were used without inclusion > of linux/vmalloc.h. Indeed. Applied now. Thanks. Takashi > > cu, > Knut > > > [2 0001-alsa-rme96-Add-missing-inclusion-of-linux-vmalloc.h.patch ] > >From 2a3f98ff69308f3c2ee508ac0887e1f8bf493d64 Mon Sep 17 00:00:00 2001 > From: Knut Petersen > Date: Thu, 22 Aug 2013 14:36:16 +0200 > Subject: [PATCH] alsa/rme96: Add missing inclusion of linux/vmalloc.h > > Signed-off-by: Knut Petersen > --- > sound/pci/rme96.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/sound/pci/rme96.c b/sound/pci/rme96.c > index 2acf565..cc6deca 100644 > --- a/sound/pci/rme96.c > +++ b/sound/pci/rme96.c > @@ -28,6 +28,7 @@ > #include > #include > #include > +#include > > #include > #include > -- > 1.8.1.4 >