aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc')
-rw-r--r--ipc/sem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/sem.c b/ipc/sem.c
index 5b33228db798..506c8491a8d1 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -1208,7 +1208,7 @@ static struct sem_undo *find_alloc_undo(struct ipc_namespace *ns, int semid)
1208 /* step 1: figure out the size of the semaphore array */ 1208 /* step 1: figure out the size of the semaphore array */
1209 sma = sem_lock_check(ns, semid); 1209 sma = sem_lock_check(ns, semid);
1210 if (IS_ERR(sma)) 1210 if (IS_ERR(sma))
1211 return ERR_PTR(PTR_ERR(sma)); 1211 return ERR_CAST(sma);
1212 1212
1213 nsems = sma->sem_nsems; 1213 nsems = sma->sem_nsems;
1214 sem_getref_and_unlock(sma); 1214 sem_getref_and_unlock(sma);