Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa41c96d authored by Meng Wang's avatar Meng Wang
Browse files

asoc: lsm: update access_ok api for msm_lsm_client



Update access_ok API based on new kernel.

Change-Id: I2bf7cf838c52cb24b882ebea5c3a5a5873f9a485
Signed-off-by: default avatarMeng Wang <mengw@codeaurora.org>
parent d71ec81b
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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);