Эх сурвалжийг харах

asoc: lsm: update access_ok api for msm_lsm_client

Update access_ok API based on new kernel.

Change-Id: I2bf7cf838c52cb24b882ebea5c3a5a5873f9a485
Signed-off-by: Meng Wang <[email protected]>
Meng Wang 5 жил өмнө
parent
commit
aa41c96dcb
1 өөрчлөгдсөн 4 нэмэгдсэн , 4 устгасан
  1. 4 4
      asoc/msm-lsm-client.c

+ 4 - 4
asoc/msm-lsm-client.c

@@ -1759,7 +1759,7 @@ static int msm_lsm_ioctl_compat(struct snd_pcm_substream *substream,
 
 		/* Update size with actual payload size */
 		size = sizeof(userarg32) + user->payload_size;
-		if (!access_ok(VERIFY_WRITE, arg, size)) {
+		if (!access_ok(arg, size)) {
 			dev_err(rtd->dev,
 				"%s: Failed to verify write, size = %d\n",
 				__func__, size);
@@ -1834,7 +1834,7 @@ static int msm_lsm_ioctl_compat(struct snd_pcm_substream *substream,
 
 		/* Update size with actual payload size */
 		size = sizeof(userarg32) + user->payload_size;
-		if (!err && !access_ok(VERIFY_WRITE, arg, size)) {
+		if (!err && !access_ok(arg, size)) {
 			dev_err(rtd->dev,
 				"%s: write verify failed size %d\n",
 				__func__, size);
@@ -2321,7 +2321,7 @@ static int msm_lsm_ioctl(struct snd_pcm_substream *substream,
 
 		/* Update size with actual payload size */
 		size = sizeof(*user) + user->payload_size;
-		if (!access_ok(VERIFY_WRITE, arg, size)) {
+		if (!access_ok(arg, size)) {
 			dev_err(rtd->dev,
 				"%s: Failed to verify write, size = %d\n",
 				__func__, size);
@@ -2393,7 +2393,7 @@ static int msm_lsm_ioctl(struct snd_pcm_substream *substream,
 
 		/* Update size with actual payload size */
 		size = sizeof(*user) + user->payload_size;
-		if (!err && !access_ok(VERIFY_WRITE, arg, size)) {
+		if (!err && !access_ok(arg, size)) {
 			dev_err(rtd->dev,
 				"%s: write verify failed size %d\n",
 				__func__, size);