diff options
author | Kevin Hilman <khilman@baylibre.com> | 2017-08-22 15:37:31 -0700 |
---|---|---|
committer | Kevin Hilman <khilman@baylibre.com> | 2017-08-22 15:37:31 -0700 |
commit | 4db26f83a7a1f8b844e4543cd82a87bee1d224e2 (patch) | |
tree | 260f68e5671b902344f8b568a45bd6df645b5bcb /ipc/shm.c | |
parent | b16c71c9f6ff50d4e4398cefd9113d82ee2fe8e6 (diff) | |
parent | aae4e7a8bc44722fe70d58920a36916b1043195e (diff) | |
download | blackbird-op-linux-4db26f83a7a1f8b844e4543cd82a87bee1d224e2.tar.gz blackbird-op-linux-4db26f83a7a1f8b844e4543cd82a87bee1d224e2.zip |
Merge tag 'v4.13-rc4' into v4.14/dt64
Linux 4.13-rc4
Diffstat (limited to 'ipc/shm.c')
-rw-r--r-- | ipc/shm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ipc/shm.c b/ipc/shm.c index 28a444861a8f..8828b4c3a190 100644 --- a/ipc/shm.c +++ b/ipc/shm.c @@ -1380,9 +1380,11 @@ SYSCALL_DEFINE1(shmdt, char __user *, shmaddr) static int sysvipc_shm_proc_show(struct seq_file *s, void *it) { struct user_namespace *user_ns = seq_user_ns(s); - struct shmid_kernel *shp = it; + struct kern_ipc_perm *ipcp = it; + struct shmid_kernel *shp; unsigned long rss = 0, swp = 0; + shp = container_of(ipcp, struct shmid_kernel, shm_perm); shm_add_rss_swap(shp, &rss, &swp); #if BITS_PER_LONG <= 32 |