diff options
author | Hui Su <sh_def@163.com> | 2020-11-15 21:00:54 +0300 |
---|---|---|
committer | Christian Brauner <christian.brauner@ubuntu.com> | 2020-11-19 12:57:02 +0300 |
commit | aabe19b8279340c43294688b4d9527a893c60463 (patch) | |
tree | 06b0cdf4c2d11b10d38d620989a40a4f529a7daa /fs/namespace.c | |
parent | bda4c60d02e9ceeee726f73250b808fad0663dd6 (diff) | |
download | linux-aabe19b8279340c43294688b4d9527a893c60463.tar.xz |
nsproxy: use put_nsproxy() in switch_task_namespaces()
We already have a dedicated helper that handles reference count
checking so stop open-coding the reference count check in
switch_task_namespaces() and use the dedicated put_nsproxy() helper
instead.
Take the change to fix a whitespace issue too.
Signed-off-by: Hui Su <sh_def@163.com>
[christian.brauner@ubuntu.com: expand commit message]
Acked-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20201115180054.GA371317@rlk
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Diffstat (limited to 'fs/namespace.c')
0 files changed, 0 insertions, 0 deletions