Re: [PATCH] hugetlbfs: fix error handling in init_hugetlbfs_fs()

From: Mike Kravetz
Date: Mon Oct 28 2019 - 17:27:24 EST


On 10/17/19 3:38 AM, Chengguang Xu wrote:
> In order to avoid using incorrect mnt, we should set
> mnt to NULL when we get error from mount_one_hugetlbfs().
>
> Signed-off-by: Chengguang Xu <cgxu519@xxxxxxxxxxxx>

Thanks for noticing this issue. As mentioned in a previous e-mail,
there are additional issues that need to be addressed. This loop
needs to initialize entries in the hugetlbfs_vfsmount array for all
hstates. How about this patch?