projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f6d0ad
)
selinux: Return directly after a failed kzalloc() in sens_read()
author
Markus Elfring
<elfring@users.sourceforge.net>
Sat, 14 Jan 2017 20:42:02 +0000
(21:42 +0100)
committer
Paul Moore
<paul@paul-moore.com>
Wed, 29 Mar 2017 13:56:48 +0000
(09:56 -0400)
Return directly after a call of the function "kzalloc" failed
at the beginning.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Paul Moore <paul@paul-moore.com>
security/selinux/ss/policydb.c
patch
|
blob
|
history
diff --git
a/security/selinux/ss/policydb.c
b/security/selinux/ss/policydb.c
index 36285d12c2e99074ceed03c65860b6a080274cf5..aa1ce7ce35243346c752db8976919163f30da972 100644
(file)
--- a/
security/selinux/ss/policydb.c
+++ b/
security/selinux/ss/policydb.c
@@
-1595,10
+1595,9
@@
static int sens_read(struct policydb *p, struct hashtab *h, void *fp)
__le32 buf[2];
u32 len;
- rc = -ENOMEM;
levdatum = kzalloc(sizeof(*levdatum), GFP_ATOMIC);
if (!levdatum)
-
goto bad
;
+
return -ENOMEM
;
rc = next_entry(buf, fp, sizeof buf);
if (rc)