ipc/sem.c: fix return code race with semop vs. semop +semctl(IPC_RMID)
[linux-2.6.git] / ipc / sem.c
index c8e00f8..fb13be1 100644 (file)
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -1460,7 +1460,6 @@ SYSCALL_DEFINE4(semtimedop, int, semid, struct sembuf __user *, tsops,
         * Array removed? If yes, leave without sem_unlock().
         */
        if (IS_ERR(sma)) {
-               error = -EIDRM;
                goto out_free;
        }