Skip to content

Commit

Permalink
[MIPS] au1xxx: dbdma, no sleeping under spin_lock
Browse files Browse the repository at this point in the history
kmalloc under spin_lock can't sleep.

Signed-off-by: Domen Puncer <domen.puncer@ultra.si>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Domen Puncer authored and Ralf Baechle committed Jun 29, 2006
1 parent 38e9156 commit c061389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/au1000/common/dbdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ au1xxx_dbdma_chan_alloc(u32 srcid, u32 destid,
/* 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;
}
Expand Down

0 comments on commit c061389

Please sign in to comment.