diff options
| author | Revathi Uddaraju <revathiu@codeaurora.org> | 2017-08-08 12:13:45 +0530 |
|---|---|---|
| committer | Revathi Uddaraju <revathiu@codeaurora.org> | 2017-09-01 10:31:27 +0530 |
| commit | 4aa84ef538d99b32629d1207eeb809d1a69abdde (patch) | |
| tree | 47bd74e8838c24b570fee4e7d2c75273e04b16ba | |
| parent | 285229fa976cb9ffe5147cc4b363748c999160f9 (diff) | |
ASoC: msm-lsm-client: cleanup ioctl functions
set variable arg to correct type in copy_from_user.
Change-Id: If17e49c473c95c597aeaee7f33dc87806ce71b4f
Signed-off-by: Revathi Uddaraju <revathiu@codeaurora.org>
| -rw-r--r-- | sound/soc/msm/qdsp6v2/msm-lsm-client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/msm/qdsp6v2/msm-lsm-client.c b/sound/soc/msm/qdsp6v2/msm-lsm-client.c index 35270e3340ec..ae6767d26921 100644 --- a/sound/soc/msm/qdsp6v2/msm-lsm-client.c +++ b/sound/soc/msm/qdsp6v2/msm-lsm-client.c @@ -1167,7 +1167,7 @@ static int msm_lsm_ioctl_shared(struct snd_pcm_substream *substream, case SNDRV_LSM_SET_FWK_MODE_CONFIG: { u32 mode; - if (copy_from_user(&mode, arg, sizeof(mode))) { + if (copy_from_user(&mode, (void __user *) arg, sizeof(mode))) { dev_err(rtd->dev, "%s: %s: copy_frm_user failed\n", __func__, "LSM_SET_FWK_MODE_CONFIG"); return -EFAULT; |
