|
@@ -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);
|