diff options
-rw-r--r-- | ipc/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/util.c b/ipc/util.c index 049f835884f5..ae357c18dcdd 100644 --- a/ipc/util.c +++ b/ipc/util.c @@ -766,7 +766,7 @@ static struct kern_ipc_perm *sysvipc_find_ipc(struct ipc_ids *ids, loff_t pos, ipc_lock_object(ipc); else rcu_read_unlock(); - *new_pos = pos + 1; + *new_pos = index + 1; return ipc; } |