projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NETFILTER]: remove NF_CONNTRACK_ENABLED option
[firefly-linux-kernel-4.4.55.git]
/
ipc
/
sem.c
diff --git
a/ipc/sem.c
b/ipc/sem.c
index 7617f4f34edc4f914541c4b3d6fa2ce5f2c66e7e..35952c0bae4629cac017c4c62623c91a022ebee5 100644
(file)
--- a/
ipc/sem.c
+++ b/
ipc/sem.c
@@
-283,10
+283,10
@@
static int newary(struct ipc_namespace *ns, struct ipc_params *params)
}
id = ipc_addid(&sem_ids(ns), &sma->sem_perm, ns->sc_semmni);
- if
(id == -1
) {
+ if
(id < 0
) {
security_sem_free(sma);
ipc_rcu_putref(sma);
- return
-ENOSPC
;
+ return
id
;
}
ns->used_sems += nsems;