diff options
author | Matthew Wilcox <willy@infradead.org> | 2018-08-18 07:05:50 -0400 |
---|---|---|
committer | Matthew Wilcox <willy@infradead.org> | 2018-08-21 23:49:31 -0400 |
commit | 76f070b4135563165c523ab560056b7a9353e2f2 (patch) | |
tree | 7b4d6288ab637779a59d325f1cc1acaca8b904f9 /lib/idr.c | |
parent | d1c0d5e3c63d61226a75f24d5c35fe20755f0180 (diff) | |
download | linux-76f070b4135563165c523ab560056b7a9353e2f2.tar.bz2 |
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