summaryrefslogtreecommitdiffstats
path: root/lib/idr.c
diff options
context:
space:
mode:
authorMatthew Wilcox2018-08-18 13:05:50 +0200
committerMatthew Wilcox2018-08-22 05:49:31 +0200
commit76f070b4135563165c523ab560056b7a9353e2f2 (patch)
tree7b4d6288ab637779a59d325f1cc1acaca8b904f9 /lib/idr.c
parentradix tree test suite: Enable ubsan (diff)
downloadkernel-qcow2-linux-76f070b4135563165c523ab560056b7a9353e2f2.tar.gz
kernel-qcow2-linux-76f070b4135563165c523ab560056b7a9353e2f2.tar.xz
kernel-qcow2-linux-76f070b4135563165c523ab560056b7a9353e2f2.zip
radix-tree: Fix UBSAN warning
get_slot_offset() can be called with a NULL 'parent' argument. In this case, the calculated value will not be used, but calculating it is undefined. Rather than fixing the caller (__radix_tree_delete) to not call get_slot_offset(), make get_slot_offset() robust against being called with a NULL parent. Signed-off-by: Matthew Wilcox <willy@infradead.org>
Diffstat (limited to 'lib/idr.c')
0 files changed, 0 insertions, 0 deletions