Skip to content

Commit fdbb53d

Browse files
Srinivas Kandagatlabroonie
authored andcommitted
ASoC: qdsp6: q6asm: do not sleep while atomic
For some reason we ended up kfree between spinlock lock and unlock, which can sleep. move the kfree out of spinlock section. Fixes: a2a5d30 ("ASoC: qdsp6: q6asm: Add support to memory map and unmap") Cc: [email protected] Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 3bcdbc2 commit fdbb53d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/qcom/qdsp6/q6asm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,9 +377,9 @@ static void q6asm_audio_client_free_buf(struct audio_client *ac,
377377

378378
spin_lock_irqsave(&ac->lock, flags);
379379
port->num_periods = 0;
380+
spin_unlock_irqrestore(&ac->lock, flags);
380381
kfree(port->buf);
381382
port->buf = NULL;
382-
spin_unlock_irqrestore(&ac->lock, flags);
383383
}
384384

385385
/**

0 commit comments

Comments
 (0)