aboutsummaryrefslogtreecommitdiffstats
path: root/security/smack/smack_access.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/smack/smack_access.c')
-rw-r--r--security/smack/smack_access.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/security/smack/smack_access.c b/security/smack/smack_access.c
index 9ecf4f4b67a1..ea1bc5055792 100644
--- a/security/smack/smack_access.c
+++ b/security/smack/smack_access.c
@@ -435,10 +435,7 @@ int smk_netlbl_mls(int level, char *catset, struct netlbl_lsm_secattr *sap,
435 435
436 sap->flags |= NETLBL_SECATTR_MLS_CAT; 436 sap->flags |= NETLBL_SECATTR_MLS_CAT;
437 sap->attr.mls.lvl = level; 437 sap->attr.mls.lvl = level;
438 sap->attr.mls.cat = netlbl_secattr_catmap_alloc(GFP_ATOMIC); 438 sap->attr.mls.cat = NULL;
439 if (!sap->attr.mls.cat)
440 return -ENOMEM;
441 sap->attr.mls.cat->startbit = 0;
442 439
443 for (cat = 1, cp = catset, byte = 0; byte < len; cp++, byte++) 440 for (cat = 1, cp = catset, byte = 0; byte < len; cp++, byte++)
444 for (m = 0x80; m != 0; m >>= 1, cat++) { 441 for (m = 0x80; m != 0; m >>= 1, cat++) {