diff options
Diffstat (limited to 'ipc/sem.c')
-rw-r--r-- | ipc/sem.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |