sound:fix kmalloc called with GFP_KERNEL flag is error in atomic context

This commit is contained in:
ddl
2010-09-02 10:50:15 +08:00
parent cfffd0d338
commit 4de38d6771

2
sound/soc/rk2818/rk2818_pcm.c Executable file → Normal file
View File

@@ -96,7 +96,7 @@ static int rockchip_dma_buffer_set_enqueue(struct rockchip_runtime_data *prtd, d
struct rockchip_dma_buf_set *sg_buf;
DBG("Enter::%s----%d\n",__FUNCTION__,__LINE__);
sg_buf = kzalloc(sizeof(struct rockchip_dma_buf_set), GFP_KERNEL);
sg_buf = kzalloc(sizeof(struct rockchip_dma_buf_set), GFP_ATOMIC);/* ddl@rock-chips.com:GFP_KERNEL->GFP_ATOMIC */
if (sg_buf == NULL) {
DBG("scatter sg buffer allocate failed,no memory!\n");