diff options
Diffstat (limited to 'ipc/sem.c')
-rw-r--r-- | ipc/sem.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1250,6 +1250,7 @@ void exit_sem(struct task_struct *tsk) | |||
1250 | undo_list = tsk->sysvsem.undo_list; | 1250 | undo_list = tsk->sysvsem.undo_list; |
1251 | if (!undo_list) | 1251 | if (!undo_list) |
1252 | return; | 1252 | return; |
1253 | tsk->sysvsem.undo_list = NULL; | ||
1253 | 1254 | ||
1254 | if (!atomic_dec_and_test(&undo_list->refcnt)) | 1255 | if (!atomic_dec_and_test(&undo_list->refcnt)) |
1255 | return; | 1256 | return; |