]> www.infradead.org Git - users/jedix/linux-maple.git/commit
hugetlb: fix/remove uninitialized variable in remove_inode_hugepages
authorMike Kravetz <mike.kravetz@oracle.com>
Fri, 26 Aug 2022 05:03:28 +0000 (22:03 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Aug 2022 05:03:28 +0000 (22:03 -0700)
commitfb67e9944b112eae0ff53b746c3745c799e809d0
tree1749b55a1d8d06a8935900a4747c60157c2776e6
parent5a796ffb4ba21bc3e1cb5b7ad2090ddc9a9540ff
hugetlb: fix/remove uninitialized variable in remove_inode_hugepages

Code introduced for the routine remove_inode_hugepages by patch "hugetlb:
handle truncate racing with page faults", incorrectly uses a variable
m_index.  This is a remnant from a previous version of the code when under
development.  Use the correct variable 'index' and remove 'm_index' from
the routine.

Link: https://lkml.kernel.org/r/Ywepr7C2X20ZvLdn@monkey
Signed-off-by: Mike Kravetz <mike.kravetz@oracle.com>
Cc: Naresh Kamboju <naresh.kamboju@linaro.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/hugetlbfs/inode.c