Skip to content

Commit

Permalink
Merge branch 'smack-for-4.12' of git://github.com/cschaufler/smack-ne…
Browse files Browse the repository at this point in the history
…xt into next
  • Loading branch information
James Morris committed Apr 18, 2017
2 parents fa5b5b2 + af96f0d commit 6859e21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion security/smack/smack_access.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ int smk_netlbl_mls(int level, char *catset, struct netlbl_lsm_secattr *sap,
if ((m & *cp) == 0)
continue;
rc = netlbl_catmap_setbit(&sap->attr.mls.cat,
cat, GFP_ATOMIC);
cat, GFP_KERNEL);
if (rc < 0) {
netlbl_catmap_free(sap->attr.mls.cat);
return rc;
Expand Down
4 changes: 1 addition & 3 deletions security/smack/smack_lsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,10 +695,8 @@ static int smack_parse_opts_str(char *options,

opts->mnt_opts_flags = kcalloc(NUM_SMK_MNT_OPTS, sizeof(int),
GFP_KERNEL);
if (!opts->mnt_opts_flags) {
kfree(opts->mnt_opts);
if (!opts->mnt_opts_flags)
goto out_err;
}

if (fsdefault) {
opts->mnt_opts[num_mnt_opts] = fsdefault;
Expand Down

0 comments on commit 6859e21

Please sign in to comment.