Skip to content

Commit

Permalink
ASoC: Intel: sst: Fix the return value of 'sst_send_byte_stream_mrfld()'
Browse files Browse the repository at this point in the history
[ Upstream commit eaadb1c ]

In some error handling paths, an error code is assiegned to 'ret'.
However, the function always return 0.

Fix it and return the error code if such an error paths is taken.

Fixes: 3d9ff34 ("ASoC: Intel: sst: add stream operations")
Signed-off-by: Christophe JAILLET <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
tititiou36 authored and gregkh committed Apr 12, 2018
1 parent 89deb4a commit 87b9099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/intel/atom/sst/sst_stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ int sst_send_byte_stream_mrfld(struct intel_sst_drv *sst_drv_ctx,
sst_free_block(sst_drv_ctx, block);
out:
test_and_clear_bit(pvt_id, &sst_drv_ctx->pvt_id);
return 0;
return ret;
}

/*
Expand Down

0 comments on commit 87b9099

Please sign in to comment.