X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=ipc%2Futil.c;h=7acccfded7cb034c9aeada477af8e0bf61302520;hb=6e014c621e7271649f0d51e54dbe1db4c10486c8;hp=97638eb2d7cb1c9ed916f45130427a0a16a4b9f3;hpb=21c5b3c6d7579944d21ff268f241d6bec425a9b4;p=linux-2.6-microblaze.git diff --git a/ipc/util.c b/ipc/util.c index 97638eb2d7cb..7acccfded7cb 100644 --- a/ipc/util.c +++ b/ipc/util.c @@ -764,13 +764,13 @@ static struct kern_ipc_perm *sysvipc_find_ipc(struct ipc_ids *ids, loff_t pos, total++; } + *new_pos = pos + 1; if (total >= ids->in_use) return NULL; for (; pos < ipc_mni; pos++) { ipc = idr_find(&ids->ipcs_idr, pos); if (ipc != NULL) { - *new_pos = pos + 1; rcu_read_lock(); ipc_lock_object(ipc); return ipc;