mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
fix address space warnings in ipc/
Signed-off-by: Linus Torvalds <[email protected]> Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
878e832ade
commit
6aa211e8ce
4 changed files with 7 additions and 7 deletions
|
|
@ -1193,10 +1193,10 @@ static int copy_compat_shmid_from_user(struct shmid64_ds *out, void __user *buf,
|
|||
{
|
||||
memset(out, 0, sizeof(*out));
|
||||
if (version == IPC_64) {
|
||||
struct compat_shmid64_ds *p = buf;
|
||||
struct compat_shmid64_ds __user *p = buf;
|
||||
return get_compat_ipc64_perm(&out->shm_perm, &p->shm_perm);
|
||||
} else {
|
||||
struct compat_shmid_ds *p = buf;
|
||||
struct compat_shmid_ds __user *p = buf;
|
||||
return get_compat_ipc_perm(&out->shm_perm, &p->shm_perm);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue