From 97f76efc86305b3f7aac40e84faa58e64022b509 Mon Sep 17 00:00:00 2001 From: Xiaoyu Ye Date: Tue, 12 Jun 2018 11:45:13 -0700 Subject: [PATCH] asoc: msm-lsm-client: add __user attribute for IOCTL Add __user attribute for msm_lsm_ioctl's input parameter "*arg" to explicitly identify it as user space pointer. Change-Id: I33e8a23cdef9eee9a55b77bb017716ccf2ba5f81 Signed-off-by: Xiaoyu Ye --- asoc/msm-lsm-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asoc/msm-lsm-client.c b/asoc/msm-lsm-client.c index 6f51236f9960..cea11b8599d5 100644 --- a/asoc/msm-lsm-client.c +++ b/asoc/msm-lsm-client.c @@ -1848,7 +1848,7 @@ done: #endif static int msm_lsm_ioctl(struct snd_pcm_substream *substream, - unsigned int cmd, void *arg) + unsigned int cmd, void __user *arg) { int err = 0; u32 size = 0;