From 62e2a2881f6b441c136fb4ccb66ab491a5e6101f Mon Sep 17 00:00:00 2001 From: youzhongyang Date: Tue, 20 Sep 2022 18:25:21 -0400 Subject: Fix minor issues in namespace delegation support get_user_ns() is only done once for each namespace, so put_user_ns() should be done once too. Fix two typos in user_namespace/user_namespace_002.ksh and user_namespace/user_namespace_003.ksh. Reviewed-by: Richard Yao Reviewed-by: Brian Behlendorf Reviewed-by: Ryan Moeller Signed-off-by: Youzhong Yang Closes #13918 --- module/os/linux/spl/spl-zone.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/os/linux/spl') diff --git a/module/os/linux/spl/spl-zone.c b/module/os/linux/spl/spl-zone.c index b8a8b7cd8..234ae7f6c 100644 --- a/module/os/linux/spl/spl-zone.c +++ b/module/os/linux/spl/spl-zone.c @@ -415,8 +415,8 @@ spl_zone_fini(void) zone_dataset_t, zd_list); list_del(&zd->zd_list); kmem_free(zd, sizeof (*zd) + zd->zd_dsnamelen + 1); - put_user_ns(zds->zds_userns); } + put_user_ns(zds->zds_userns); list_del(&zds->zds_list); kmem_free(zds, sizeof (*zds)); } -- cgit v1.2.3