From: Takashi Iwai Subject: Re: control.c: BUG info->access == 0 Date: Fri, 22 Sep 2006 11:50:56 +0200 Message-ID: References: <20060921204804.GA20477@aepfle.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 (mx2.suse.de [195.135.220.15]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id D1BE521B for ; Fri, 22 Sep 2006 11:50:56 +0200 (MEST) In-Reply-To: <20060921204804.GA20477@aepfle.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Olaf Hering Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Thu, 21 Sep 2006 22:48:04 +0200, Olaf Hering wrote: > > > I get this on an unconfigured G5 (PowerMac11,2) during boot: > > ALSA sound/core/control.c:660: BUG? (info->access == 0) > Call Trace: > [C00000007B0C3B60] [C00000000000F5E8] .show_stack+0x68/0x1b0 (unreliable) > [C00000007B0C3C00] [D00000000013AB9C] .snd_ctl_elem_info+0xd0/0x1d8 [snd] > [C00000007B0C3CB0] [D00000000013CCA0] .snd_ctl_ioctl_compat+0x2c8/0x638 [snd] > [C00000007B0C3D70] [C0000000001160F4] .compat_sys_ioctl+0x158/0x3b4 > [C00000007B0C3E30] [C00000000000871C] syscall_exit+0x0/0x40 The patch below should fix it. Let me know if it works, then I'll send it to stable@kernel. thanks, Takashi diff --git a/sound/core/control.c b/sound/core/control.c index bb397ea..ac890d9 100644 --- a/sound/core/control.c +++ b/sound/core/control.c @@ -997,6 +997,7 @@ static int snd_ctl_elem_add(struct snd_c if (ue == NULL) return -ENOMEM; ue->info = *info; + ue->info.access = 0; ue->elem_data = (char *)ue + sizeof(*ue); ue->elem_data_size = private_size; kctl.private_free = snd_ctl_elem_user_free; ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV