From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Mack Subject: Re: [PATCH 2/5] ALSA: snd-usb: implement new endpoint streaming model Date: Wed, 21 Dec 2011 17:34:09 +0100 Message-ID: <4EF20A81.9070307@gmail.com> References: <1324424088-5705-1-git-send-email-zonque@gmail.com> <1324424088-5705-3-git-send-email-zonque@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail-ee0-f51.google.com (mail-ee0-f51.google.com [74.125.83.51]) by alsa0.perex.cz (Postfix) with ESMTP id 43A60243D8 for ; Wed, 21 Dec 2011 17:34:15 +0100 (CET) Received: by eekb57 with SMTP id b57so7313811eek.38 for ; Wed, 21 Dec 2011 08:34:14 -0800 (PST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: =?ISO-8859-1?Q?Aur=E9lien_Leblond?= Cc: tiwai@suse.de, alsa-devel@alsa-project.org, clemens@ladisch.de, gdiffey@gmail.com, linuxaudio@showlabor.de List-Id: alsa-devel@alsa-project.org On 12/21/2011 05:16 PM, Aur=E9lien Leblond wrote: > Hello Daniel, > = > I'm now running this new patch with the kernel git 3.2 rc6. > = > I do get sound through Alsa and Pulse Audio, but Jackd2 crashes at start. > The same version of jack works on 3.2 rc4 with your previous version > of the patch. > = > Let me know if there is any other info that I should provide you > outside the dmesg trace below. > = > In dmesg, I get the following: > [ 92.185624] BUG: unable to handle kernel NULL pointer dereference > at 0000000000000008 > [ 92.185637] IP: [] > snd_usb_endpoint_activate+0x18/0x90 [snd_usb_audio] Can you do a quick fix and add the following two lines right at the beginning of snd_usb_endpoint_activate() in sound/usb/endpoint.c: if (!ep) return 0; ? I'll fix this in a nicer way, but that should work. Thanks, Daniel