ASoC: Intel: pass correct parameter in sst_alloc_stream_mrfld()
Subsystems (4)
PATCH 1/1 ASoC: Intel: pass correct parameter in sst_alloc_stream_mrfld()
"data" is always NULL in this function. I think we should be passing "&data" to sst_prepare_and_post_msg() instead of "data".
---
Not tested.
sound/soc/intel/atom/sst/sst_stream.c +1 -1
@@ -108,7 +108,7 @@ int sst_alloc_stream_mrfld(struct intel_sst_drv *sst_drv_ctx, void *params) str_id, pipe_id); ret =sst_prepare_and_post_msg (sst_drv_ctx, task_id,IPC_CMD ,IPC_IA_ALLOC_STREAM_MRFLD , pipe_id,sizeof (alloc_param), - &alloc_param, data, true, true, false, true); + &alloc_param, &data, true, true, false, true);if (ret <0 ) {dev_err (sst_drv_ctx->dev,"FW alloc failed ret %d\n" , ret);
Quoted 7 lines · Dan Carpenter
"data" is always NULL in this function. I think we should be passing "&data" to
sst_prepare_and_post_msg()instead of "data".Fixes 3d9ff34622ba ('ASoC: Intel: sst: add stream operations')Signed-off-by Dan Carpenter <[email protected]>---
Not tested.
This looks right to me but this should have resulted in broken stuff, I will test this tomorrow and get back
Signature · 1 line
~Vinod
Quoted 11 lines · Vinod Koul
Quoted 7 lines · Dan Carpenter
"data" is always NULL in this function. I think we should be passing "&data" to
sst_prepare_and_post_msg()instead of "data".Fixes 3d9ff34622ba ('ASoC: Intel: sst: add stream operations')Signed-off-by Dan Carpenter <[email protected]>---
Not tested.This looks right to me but this should have resulted in broken stuff, I will test this tomorrow and get back
we tested and looks right, so
Signature · 1 line
~Vinod
Mark Brown
maintainerApplied "ASoC: Intel: pass correct parameter in sst_alloc_stream_mrfld()" to the asoc tree
In reply to Dan CarpenterThe patch
ASoC: Intel: pass correct parameter in sst_alloc_stream_mrfld()
has been applied to the asoc tree at
git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark
Quoted 1 line
From
d16a2b9f2465b5486f830178fbfb7d203e0a17aeMon Sep 17 00:00:00 2001
From: Dan Carpenter <[email protected]>
Date: Wed, 18 Nov 2015 13:04:20 +0300
Subject: [PATCH] ASoC: Intel: pass correct parameter in
sst_alloc_stream_mrfld()
"data" is always NULL in this function. I think we should be passing "&data" to sst_prepare_and_post_msg() instead of "data".
--- sound/soc/intel/atom/sst/sst_stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/intel/atom/sst/sst_stream.c +1 -1
@@ -108,7 +108,7 @@ int sst_alloc_stream_mrfld(struct intel_sst_drv *sst_drv_ctx, void *params) str_id, pipe_id); ret =sst_prepare_and_post_msg (sst_drv_ctx, task_id,IPC_CMD ,IPC_IA_ALLOC_STREAM_MRFLD , pipe_id,sizeof (alloc_param), - &alloc_param, data, true, true, false, true); + &alloc_param, &data, true, true, false, true);if (ret <0 ) {dev_err (sst_drv_ctx->dev,"FW alloc failed ret %d\n" , ret);
Signature · 1 line
2.6.1