diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2019-05-12 12:42:58 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2019-05-25 17:59:54 -0400 |
commit | f7a9945184100b531f0de3b12c617a349236dd8a (patch) | |
tree | be83490fcfad13c338adb4973a72ed923695f249 /arch/x86/kernel/cpu/resctrl | |
parent | 1f58bb18f6f28d1df0b7144d90bc90ee5672416d (diff) | |
download | linux-f7a9945184100b531f0de3b12c617a349236dd8a.tar.bz2 |
no need to protect against put_user_ns(NULL)
it's a no-op
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/x86/kernel/cpu/resctrl')
-rw-r--r-- | arch/x86/kernel/cpu/resctrl/rdtgroup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/resctrl/rdtgroup.c b/arch/x86/kernel/cpu/resctrl/rdtgroup.c index 333c177a2471..68bd609026e6 100644 --- a/arch/x86/kernel/cpu/resctrl/rdtgroup.c +++ b/arch/x86/kernel/cpu/resctrl/rdtgroup.c @@ -2108,8 +2108,7 @@ static int rdt_init_fs_context(struct fs_context *fc) ctx->kfc.magic = RDTGROUP_SUPER_MAGIC; fc->fs_private = &ctx->kfc; fc->ops = &rdt_fs_context_ops; - if (fc->user_ns) - put_user_ns(fc->user_ns); + put_user_ns(fc->user_ns); fc->user_ns = get_user_ns(&init_user_ns); fc->global = true; return 0; |