diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 09fd6108e421..d1b141e33ecb 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -1100,11 +1100,12 @@ static int selinux_parse_opts_str(char *options, | |||
1100 | } | 1100 | } |
1101 | 1101 | ||
1102 | rc = -ENOMEM; | 1102 | rc = -ENOMEM; |
1103 | opts->mnt_opts = kcalloc(NUM_SEL_MNT_OPTS, sizeof(char *), GFP_ATOMIC); | 1103 | opts->mnt_opts = kcalloc(NUM_SEL_MNT_OPTS, sizeof(char *), GFP_KERNEL); |
1104 | if (!opts->mnt_opts) | 1104 | if (!opts->mnt_opts) |
1105 | goto out_err; | 1105 | goto out_err; |
1106 | 1106 | ||
1107 | opts->mnt_opts_flags = kcalloc(NUM_SEL_MNT_OPTS, sizeof(int), GFP_ATOMIC); | 1107 | opts->mnt_opts_flags = kcalloc(NUM_SEL_MNT_OPTS, sizeof(int), |
1108 | GFP_KERNEL); | ||
1108 | if (!opts->mnt_opts_flags) { | 1109 | if (!opts->mnt_opts_flags) { |
1109 | kfree(opts->mnt_opts); | 1110 | kfree(opts->mnt_opts); |
1110 | goto out_err; | 1111 | goto out_err; |