Skip to content

Commit 613cea5

Browse files
Dan Carpenterbroonie
authored andcommitted
ASoC: SOF: Fix snd_sof_ipc_stream_posn()
We're passing "&posn" instead of "posn" so it ends up corrupting memory instead of doing something useful. Fixes: 53e0c72 ("ASoC: SOF: Add support for IPC IO between DSP and Host") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Kai Vehmanen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 4b01618 commit 613cea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/sof/ipc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ int snd_sof_ipc_stream_posn(struct snd_soc_component *scomp,
499499

500500
/* send IPC to the DSP */
501501
err = sof_ipc_tx_message(sdev->ipc,
502-
stream.hdr.cmd, &stream, sizeof(stream), &posn,
502+
stream.hdr.cmd, &stream, sizeof(stream), posn,
503503
sizeof(*posn));
504504
if (err < 0) {
505505
dev_err(sdev->dev, "error: failed to get stream %d position\n",

0 commit comments

Comments
 (0)