aboutsummaryrefslogtreecommitdiff
path: root/fs/filesystems.c
diff options
context:
space:
mode:
authorMike Kravetz <[email protected]>2019-11-30 17:56:34 -0800
committerLinus Torvalds <[email protected]>2019-12-01 12:59:08 -0800
commit8fc312b32b25c6b0a8b46fab4df8c68df5af1223 (patch)
tree8d263f997d3cf396de30dadd86a3bb4526e82713 /fs/filesystems.c
parent552546366a30d88bd1d6f5efe848b2ab50fd57e5 (diff)
mm/hugetlbfs: fix error handling when setting up mounts
It is assumed that the hugetlbfs_vfsmount[] array will contain either a valid vfsmount pointer or NULL for each hstate after initialization. Changes made while converting to use fs_context broke this assumption. While fixing the hugetlbfs_vfsmount issue, it was discovered that init_hugetlbfs_fs never did correctly clean up when encountering a vfs mount error. It was found during code inspection. A small memory allocation failure would be the most likely cause of taking a error path with the bug. This is unlikely to happen as this is early init code. Link: http://lkml.kernel.org/r/[email protected] Reported-by: Chengguang Xu <[email protected]> Fixes: 32021982a324 ("hugetlbfs: Convert to fs_context") Signed-off-by: Mike Kravetz <[email protected]> Cc: David Howells <[email protected]> Cc: Al Viro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/filesystems.c')
0 files changed, 0 insertions, 0 deletions