aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2024-04-12 12:19:17 +0200
committerJoerg Roedel <jroedel@suse.de>2024-04-12 12:19:17 +0200
commitaaab76080256872c1a82c7b5cd3dd7f4745bd356 (patch)
tree1401a387fd7cc6c9e756dc9b70356676c3bb3d78 /lib
parentc086fe80d457857ab080576a4bf9be708190dca8 (diff)
parentfec50db7033ea478773b159e0e2efb135270e3b7 (diff)
downloadiommu-master.tar.gz
Merge tag 'v6.9-rc3'HEADmaster
Linux 6.9-rc3
Diffstat (limited to 'lib')
-rw-r--r--lib/stackdepot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stackdepot.c b/lib/stackdepot.c
index af6cc19a200331..68c97387aa54e2 100644
--- a/lib/stackdepot.c
+++ b/lib/stackdepot.c
@@ -330,7 +330,7 @@ static struct stack_record *depot_pop_free_pool(void **prealloc, size_t size)
stack = current_pool + pool_offset;
/* Pre-initialize handle once. */
- stack->handle.pool_index = pool_index + 1;
+ stack->handle.pool_index_plus_1 = pool_index + 1;
stack->handle.offset = pool_offset >> DEPOT_STACK_ALIGN;
stack->handle.extra = 0;
INIT_LIST_HEAD(&stack->hash_list);
@@ -441,7 +441,7 @@ static struct stack_record *depot_fetch_stack(depot_stack_handle_t handle)
const int pools_num_cached = READ_ONCE(pools_num);
union handle_parts parts = { .handle = handle };
void *pool;
- u32 pool_index = parts.pool_index - 1;
+ u32 pool_index = parts.pool_index_plus_1 - 1;
size_t offset = parts.offset << DEPOT_STACK_ALIGN;
struct stack_record *stack;