MLK-16450-1: ASoC: fsl_hifi4: fix crash issue caused by memcpy()
authorWeiguang Kong <weiguang.kong@nxp.com>
Wed, 13 Sep 2017 07:24:38 +0000 (15:24 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:32 +0000 (15:38 -0500)
commit60f9300ddf9454db50c34ff20295818ef4aa50cb
tree0a38830a2f16a6cd0a7039e7478dbc38b6f5ce23
parent3cae48ceb2571680db8803c39b5a796c97f5173a
MLK-16450-1: ASoC: fsl_hifi4: fix crash issue caused by memcpy()

When loop testing the hifi4 dirver, a random crash issue always
occur when doing memcpy() in decode function.
Have found that memcpy() is not suited to transfer data between
kernel space and user space, so use copy_from_user() and copy_
to_user() function to replace memcpy() to fix this issue.

Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com>
sound/soc/fsl/fsl_hifi4.c