diff options
Diffstat (limited to 'ipc/shm.c')
-rw-r--r-- | ipc/shm.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1380,9 +1380,11 @@ SYSCALL_DEFINE1(shmdt, char __user *, shmaddr) | |||
1380 | static int sysvipc_shm_proc_show(struct seq_file *s, void *it) | 1380 | static int sysvipc_shm_proc_show(struct seq_file *s, void *it) |
1381 | { | 1381 | { |
1382 | struct user_namespace *user_ns = seq_user_ns(s); | 1382 | struct user_namespace *user_ns = seq_user_ns(s); |
1383 | struct shmid_kernel *shp = it; | 1383 | struct kern_ipc_perm *ipcp = it; |
1384 | struct shmid_kernel *shp; | ||
1384 | unsigned long rss = 0, swp = 0; | 1385 | unsigned long rss = 0, swp = 0; |
1385 | 1386 | ||
1387 | shp = container_of(ipcp, struct shmid_kernel, shm_perm); | ||
1386 | shm_add_rss_swap(shp, &rss, &swp); | 1388 | shm_add_rss_swap(shp, &rss, &swp); |
1387 | 1389 | ||
1388 | #if BITS_PER_LONG <= 32 | 1390 | #if BITS_PER_LONG <= 32 |