mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
no need to protect against put_user_ns(NULL)
it's a no-op Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
1f58bb18f6
commit
f7a9945184
3 changed files with 3 additions and 6 deletions
|
|
@ -2184,8 +2184,7 @@ static int cgroup_init_fs_context(struct fs_context *fc)
|
|||
fc->ops = &cgroup_fs_context_ops;
|
||||
else
|
||||
fc->ops = &cgroup1_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(ctx->ns->user_ns);
|
||||
fc->global = true;
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue