diff options
| author | Jan Stancek <[email protected]> | 2020-01-03 17:37:18 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2020-01-03 18:39:08 +0000 |
| commit | 15f0ec941f4f908fefa23a30ded8358977cc1cc0 (patch) | |
| tree | 98915c2ae263664ccbf0503d5b65df81cacd10bd /drivers/iio/trigger/stm32-timer-trigger.c | |
| parent | Merge tag 'sizeof_field-v5.5-rc5' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
| download | kernel-15f0ec941f4f908fefa23a30ded8358977cc1cc0.tar.gz kernel-15f0ec941f4f908fefa23a30ded8358977cc1cc0.zip | |
mm/hugetlbfs: fix for_each_hstate() loop in init_hugetlbfs_fs()
LTP memfd_create04 started failing for some huge page sizes
after v5.4-10135-gc3bfc5dd73c6.
The problem is the check introduced to for_each_hstate() loop that
should skip default_hstate_idx. Since it doesn't update 'i' counter,
all subsequent huge page sizes are skipped as well.
Fixes: 8fc312b32b25 ("mm/hugetlbfs: fix error handling when setting up mounts")
Signed-off-by: Jan Stancek <[email protected]>
Reviewed-by: Mike Kravetz <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions
