diff options
Diffstat (limited to 'ipc/util.c')
-rw-r--r-- | ipc/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipc/util.c b/ipc/util.c index 910db7748199..fd1b50da9db8 100644 --- a/ipc/util.c +++ b/ipc/util.c | |||
@@ -833,7 +833,7 @@ static void *sysvipc_proc_next(struct seq_file *s, void *it, loff_t *pos) | |||
833 | if (ipc && ipc != SEQ_START_TOKEN) | 833 | if (ipc && ipc != SEQ_START_TOKEN) |
834 | ipc_unlock(ipc); | 834 | ipc_unlock(ipc); |
835 | 835 | ||
836 | return sysvipc_find_ipc(iter->ns->ids[iface->ids], *pos, pos); | 836 | return sysvipc_find_ipc(&iter->ns->ids[iface->ids], *pos, pos); |
837 | } | 837 | } |
838 | 838 | ||
839 | /* | 839 | /* |
@@ -846,7 +846,7 @@ static void *sysvipc_proc_start(struct seq_file *s, loff_t *pos) | |||
846 | struct ipc_proc_iface *iface = iter->iface; | 846 | struct ipc_proc_iface *iface = iter->iface; |
847 | struct ipc_ids *ids; | 847 | struct ipc_ids *ids; |
848 | 848 | ||
849 | ids = iter->ns->ids[iface->ids]; | 849 | ids = &iter->ns->ids[iface->ids]; |
850 | 850 | ||
851 | /* | 851 | /* |
852 | * Take the lock - this will be released by the corresponding | 852 | * Take the lock - this will be released by the corresponding |
@@ -877,7 +877,7 @@ static void sysvipc_proc_stop(struct seq_file *s, void *it) | |||
877 | if (ipc && ipc != SEQ_START_TOKEN) | 877 | if (ipc && ipc != SEQ_START_TOKEN) |
878 | ipc_unlock(ipc); | 878 | ipc_unlock(ipc); |
879 | 879 | ||
880 | ids = iter->ns->ids[iface->ids]; | 880 | ids = &iter->ns->ids[iface->ids]; |
881 | /* Release the lock we took in start() */ | 881 | /* Release the lock we took in start() */ |
882 | up_read(&ids->rw_mutex); | 882 | up_read(&ids->rw_mutex); |
883 | } | 883 | } |