Skip to contentSkip to conversation

sleeping function called from illegal context at mm/slab.c:1304

DISCUSSION Michael Dreher 2 participants 2 messages Nov 22, 2002

lore
Share & tools
lore
#0 lore raw

Hello all,

this is with 2.5.48 (and several kernels before).

Best regards,
Michael

Debug: sleeping function called from illegal context at mm/slab.c:1304
kernel: Call Trace:
kernel:  [__might_sleep+84/96] __might_sleep+0x54/0x60
kernel:  [kmem_flagcheck+30/80] kmem_flagcheck+0x1e/0x50
kernel:  [kmalloc+75/288] kmalloc+0x4b/0x120
kernel:  [<e08a80bb>] build_via_table+0x5b/0x190 [snd-via82xx]
kernel:  [__delay+19/48] __delay+0x13/0x30
kernel:  [<e08a858e>] snd_via82xx_setup_periods+0x2e/0x130 [snd-via82xx]
kernel:  [<e08a888e>] snd_via82xx_playback_prepare+0x7e/0x90 
[snd-via82xx]
kernel:  [<e0897ed1>] snd_pcm_prepare+0x21/0x210 [snd-pcm]
kernel:  [<e0897fd9>] snd_pcm_prepare+0x129/0x210 [snd-pcm]
kernel:  [<e0899ce6>] snd_pcm_common_ioctl1+0x1d6/0x2b0 [snd-pcm]
kernel:  [<e089a05e>] snd_pcm_playback_ioctl1+0x29e/0x2b0 [snd-pcm]
kernel:  [<e089a300>] snd_pcm_playback_ioctl+0x20/0x30 [snd-pcm]
kernel:  [sys_ioctl+537/624] sys_ioctl+0x219/0x270
kernel:  [error_code+45/56] error_code+0x2d/0x38
kernel:  [syscall_call+7/11] syscall_call+0x7/0xb
#1 lore raw

Hello..

Try this patch..

best regards

Quoted 35 lines · On Fri, 22 Nov 2002 19:33:22 +0100 Michael Dreher <[email protected]>…

Hello all,

this is with 2.5.48 (and several kernels before).

Best regards,
Michael

Debug: sleeping function called from illegal context at mm/slab.c:1304
kernel: Call Trace:
kernel:  [__might_sleep+84/96] __might_sleep+0x54/0x60
kernel:  [kmem_flagcheck+30/80] kmem_flagcheck+0x1e/0x50
kernel:  [kmalloc+75/288] kmalloc+0x4b/0x120
kernel:  [<e08a80bb>] build_via_table+0x5b/0x190 [snd-via82xx]
kernel:  [__delay+19/48] __delay+0x13/0x30
kernel:  [<e08a858e>] snd_via82xx_setup_periods+0x2e/0x130 [snd-via82xx]
kernel:  [<e08a888e>] snd_via82xx_playback_prepare+0x7e/0x90 
[snd-via82xx]
kernel:  [<e0897ed1>] snd_pcm_prepare+0x21/0x210 [snd-pcm]
kernel:  [<e0897fd9>] snd_pcm_prepare+0x129/0x210 [snd-pcm]
kernel:  [<e0899ce6>] snd_pcm_common_ioctl1+0x1d6/0x2b0 [snd-pcm]
kernel:  [<e089a05e>] snd_pcm_playback_ioctl1+0x29e/0x2b0 [snd-pcm]
kernel:  [<e089a300>] snd_pcm_playback_ioctl+0x20/0x30 [snd-pcm]
kernel:  [sys_ioctl+537/624] sys_ioctl+0x219/0x270
kernel:  [error_code+45/56] error_code+0x2d/0x38
kernel:  [syscall_call+7/11] syscall_call+0x7/0xb

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Signature · 4 lines
::: Lucio F. Maciel
::: [email protected]
::: icq 93065464
::: Absoluta.net
pci/via82xx.c renamed from pci/via82xx.c~ +1 -1
@@ -222,7 +222,7 @@
 			return -ENOMEM;
 	}
 	if (! dev->idx_table) {
-		dev->idx_table = kmalloc(sizeof(*dev->idx_table) * VIA_TABLE_SIZE, GFP_KERNEL);
+		dev->idx_table = kmalloc(sizeof(*dev->idx_table) * VIA_TABLE_SIZE, GFP_ATOMIC);
 		if (! dev->idx_table)
 			return -ENOMEM;
 	}