mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* sleeping function called from illegal context at mm/slab.c:1304
@ 2002-11-22 18:33 Michael Dreher
  2002-11-22 19:14 ` Lucio Maciel
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Dreher @ 2002-11-22 18:33 UTC (permalink / raw)
  To: linux-kernel, perex

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: sleeping function called from illegal context at mm/slab.c:1304
  2002-11-22 18:33 sleeping function called from illegal context at mm/slab.c:1304 Michael Dreher
@ 2002-11-22 19:14 ` Lucio Maciel
  0 siblings, 0 replies; 2+ messages in thread
From: Lucio Maciel @ 2002-11-22 19:14 UTC (permalink / raw)
  To: Michael Dreher; +Cc: linux-kernel, perex

[-- Attachment #1: Type: text/plain, Size: 1590 bytes --]


Hello..

Try this patch..

best regards
On Fri, 22 Nov 2002 19:33:22 +0100
Michael Dreher <dreher@math.tu-freiberg.de> wrote:

> 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 majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 


-- 
::: Lucio F. Maciel
::: abslucio@terra.com.br
::: icq 93065464
::: Absoluta.net

[-- Attachment #2: via82xx.diff --]
[-- Type: application/octet-stream, Size: 406 bytes --]

--- sound/pci/via82xx.c~	2002-11-22 17:06:30.000000000 -0200
+++ sound/pci/via82xx.c	2002-11-22 17:06:38.000000000 -0200
@@ -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;
 	}

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-11-22 19:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-22 18:33 sleeping function called from illegal context at mm/slab.c:1304 Michael Dreher
2002-11-22 19:14 ` Lucio Maciel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®