diff options
author | 2023-05-18 10:55:17 -0400 | |
---|---|---|
committer | 2023-06-09 16:25:29 -0700 | |
commit | 7f2f9dc16fee59afdec2df8c794e97c36e387257 (patch) | |
tree | ce6b1e471d1c9dd982c064bc9cae14c538d57333 /lib/test_maple_tree.c | |
parent | maple_tree: convert BUG_ON() to MT_BUG_ON() (diff) | |
download | wireguard-linux-7f2f9dc16fee59afdec2df8c794e97c36e387257.tar.xz wireguard-linux-7f2f9dc16fee59afdec2df8c794e97c36e387257.zip |
maple_tree: change RCU checks to WARN_ON() instead of BUG_ON()
If RCU is enabled and the tree isn't locked, just warn the user and avoid
crashing the kernel.
Link: https://lkml.kernel.org/r/20230518145544.1722059-9-Liam.Howlett@oracle.com
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: David Binderman <dcb314@hotmail.com>
Cc: Peng Zhang <zhangpeng.00@bytedance.com>
Cc: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Vernon Yang <vernon2gm@gmail.com>
Cc: Wei Yang <richard.weiyang@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/test_maple_tree.c')
0 files changed, 0 insertions, 0 deletions