git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ipc/sem.c: use ERR_CAST
[pandora-kernel.git]
/
ipc
/
sem.c
diff --git
a/ipc/sem.c
b/ipc/sem.c
index
5b33228
..
506c849
100644
(file)
--- 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)
/* step 1: figure out the size of the semaphore array */
sma = sem_lock_check(ns, semid);
if (IS_ERR(sma))
- return ERR_
PTR(PTR_ERR(sma)
);
+ return ERR_
CAST(sma
);
nsems = sma->sem_nsems;
sem_getref_and_unlock(sma);