diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2023-07-18 14:19:42 -0700 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2023-07-18 14:19:42 -0700 | 
| commit | 4806364acf770fa1d24ccc98169ca6f5c6979caa (patch) | |
| tree | 1dcfeddf0facfe9d0e5a0f9250d125674b089953 /lib/maple_tree.c | |
| parent | 74f1456c4a5f3d7da4102ecae5c20370f89c6ed1 (diff) | |
| parent | ef5c3de5211b5a3a8102b25aa83eb4cde65ac2fd (diff) | |
Merge tag 'mm-hotfixes-stable-2023-07-18-12-28' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
Pull hotfixes from Andrew Morton:
 "Seven hotfixes, six of which are cc:stable and one of which addresses
  a post-6.5 issue"
* tag 'mm-hotfixes-stable-2023-07-18-12-28' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm:
  maple_tree: fix node allocation testing on 32 bit
  maple_tree: fix 32 bit mas_next testing
  selftests/mm: mkdirty: fix incorrect position of #endif
  maple_tree: set the node limit when creating a new root node
  mm/mlock: fix vma iterator conversion of apply_vma_lock_flags()
  prctl: move PR_GET_AUXV out of PR_MCE_KILL
  selftests/mm: give scripts execute permission
Diffstat (limited to 'lib/maple_tree.c')
| -rw-r--r-- | lib/maple_tree.c | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/maple_tree.c b/lib/maple_tree.c index bfffbb7cab26..4dd73cf936a6 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3692,7 +3692,8 @@ static inline int mas_root_expand(struct ma_state *mas, void *entry)  	mas->offset = slot;  	pivots[slot] = mas->last;  	if (mas->last != ULONG_MAX) -		slot++; +		pivots[++slot] = ULONG_MAX; +  	mas->depth = 1;  	mas_set_height(mas);  	ma_set_meta(node, maple_leaf_64, 0, slot);  | 
