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: Stable@vger.kernel.org Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com> Link: https://patch.msgid.link/20251017085307.4325-2-srinivas.kandagatla@oss.qualcomm.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 3bcdbc2 commit fdbb53d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)