]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ASoC: Intel: Fix incorrect sizeof() in sst_hsw_stream_get_volume()
authorChristian Engelmayer <cengelma@gmx.at>
Sun, 13 Apr 2014 17:56:36 +0000 (19:56 +0200)
committerMark Brown <broonie@linaro.org>
Tue, 15 Apr 2014 11:12:34 +0000 (12:12 +0100)
commitf3046f86b8a455ae55b8d465cd34938006361096
tree12e29f0c12742406f11d0f0ae4c42d9004cef579
parentc9eaa447e77efe77b7fa4c953bd62de8297fd6c5
ASoC: Intel: Fix incorrect sizeof() in sst_hsw_stream_get_volume()

Fix an incorrect sizeof() usage in sst_hsw_stream_get_volume(). sst_dsp_read()
is called to read into a variable of type u32, but is passed sizeof(u32 *) for
argument 'size_t bytes'. Detected by Coverity: CID 1195260.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/intel/sst-haswell-ipc.c