projects
/
users
/
jedix
/
linux-maple.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79a3da9
)
maple_tree: Use MAS_WR_BUG_ON() in mas_store_prealloc()
author
Liam R. Howlett <Liam.Howlett@oracle.com>
Thu, 1 Sep 2022 20:27:51 +0000
(16:27 -0400)
committer
Liam R. Howlett <Liam.Howlett@oracle.com>
Wed, 29 Mar 2023 22:58:39 +0000
(18:58 -0400)
mas_store_prealloc() should never fail, but if it does due to internal
tree issues then get as much debug information as possible prior to
crashing the kernel.
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c
patch
|
blob
|
history
diff --git
a/lib/maple_tree.c
b/lib/maple_tree.c
index 44168a2c3a2869e11fe43348072b1b077fcd1efa..1872db0df287c3a31b3eef1f8ad6f671a79aedf4 100644
(file)
--- a/
lib/maple_tree.c
+++ b/
lib/maple_tree.c
@@
-5790,7
+5790,7
@@
void mas_store_prealloc(struct ma_state *mas, void *entry)
mas_wr_store_setup(&wr_mas);
trace_ma_write(__func__, mas, 0, entry);
mas_wr_store_entry(&wr_mas);
-
BUG_ON(
mas_is_err(mas));
+
MAS_WR_BUG_ON(&wr_mas,
mas_is_err(mas));
mas_destroy(mas);
}
EXPORT_SYMBOL_GPL(mas_store_prealloc);