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

Merge "asoc: lsm: update access_ok api for msm_lsm_client" into audio-drivers.lnx.5.0

Linux Build Service Account 5 жил өмнө
parent
commit
77f50499d9
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);