diff options
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/sem.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1290,8 +1290,8 @@ void exit_sem(struct task_struct *tsk) | |||
1290 | int i; | 1290 | int i; |
1291 | 1291 | ||
1292 | rcu_read_lock(); | 1292 | rcu_read_lock(); |
1293 | un = list_entry(rcu_dereference(ulp->list_proc.next), | 1293 | un = list_entry_rcu(ulp->list_proc.next, |
1294 | struct sem_undo, list_proc); | 1294 | struct sem_undo, list_proc); |
1295 | if (&un->list_proc == &ulp->list_proc) | 1295 | if (&un->list_proc == &ulp->list_proc) |
1296 | semid = -1; | 1296 | semid = -1; |
1297 | else | 1297 | else |