mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
sound:fix kmalloc called with GFP_KERNEL flag is error in atomic context
This commit is contained in:
2
sound/soc/rk2818/rk2818_pcm.c
Executable file → Normal file
2
sound/soc/rk2818/rk2818_pcm.c
Executable file → Normal 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");
|
||||
|
||||
Reference in New Issue
Block a user