Re: control.c: BUG info->access == 0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux