| To: | Ralf Baechle <ralf@linux-mips.org> |
|---|---|
| Subject: | [patch 4/8] au1xxx: dbdma, no sleeping under spin_lock |
| From: | Domen Puncer <domen.puncer@ultra.si> |
| Date: | Fri, 23 Jun 2006 11:59:50 +0200 |
| Cc: | linux-mips@linux-mips.org |
| In-reply-to: | <20060623095703.GA30980@domen.ultra.si> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <20060623095703.GA30980@domen.ultra.si> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | Mutt/1.5.11+cvs20060126 |
kmalloc under spin_lock can't sleep.
Signed-off-by: Domen Puncer <domen.puncer@ultra.si>
Index: linux-mailed/arch/mips/au1000/common/dbdma.c
===================================================================
--- linux-mailed.orig/arch/mips/au1000/common/dbdma.c
+++ linux-mailed/arch/mips/au1000/common/dbdma.c
@@ -290,7 +290,7 @@ au1xxx_dbdma_chan_alloc(u32 srcid, u32 d
/* If kmalloc fails, it is caught below same
* as a channel not available.
*/
- ctp = kmalloc(sizeof(chan_tab_t), GFP_KERNEL);
+ ctp = kmalloc(sizeof(chan_tab_t), GFP_ATOMIC);
chan_tab_ptr[i] = ctp;
break;
}
|
| Previous by Date: | [patch 3/8] au1xxx: I2C support for au1200, Domen Puncer |
|---|---|
| Next by Date: | [patch 5/8] au1xxx: export dbdma functions, Domen Puncer |
| Previous by Thread: | Re: [patch 3/8] au1xxx: I2C support for au1200, Ralf Baechle |
| Next by Thread: | Re: [patch 4/8] au1xxx: dbdma, no sleeping under spin_lock, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |