X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ipc%2Fsem.c;h=e9418df5ff3ecf0c3cb3bb6e6fbac9de5fcac828;hb=22a37bcb7857541eb2d37806c4744ee2530baa98;hp=d56d3ab6bb8a7b62b6aa9141b1d22f34a3c3c002;hpb=a5f75e7f256f75759ec3d6dbef0ba932f1b397d2;p=linux-2.6 diff --git a/ipc/sem.c b/ipc/sem.c index d56d3ab6bb..e9418df5ff 100644 --- a/ipc/sem.c +++ b/ipc/sem.c @@ -1250,6 +1250,7 @@ void exit_sem(struct task_struct *tsk) undo_list = tsk->sysvsem.undo_list; if (!undo_list) return; + tsk->sysvsem.undo_list = NULL; if (!atomic_dec_and_test(&undo_list->refcnt)) return;