commit | 76f070b4135563165c523ab560056b7a9353e2f2 | [log] [tgz] |
---|---|---|
author | Matthew Wilcox <willy@infradead.org> | Sat Aug 18 07:05:50 2018 -0400 |
committer | Matthew Wilcox <willy@infradead.org> | Tue Aug 21 23:49:31 2018 -0400 |
tree | 7b4d6288ab637779a59d325f1cc1acaca8b904f9 | |
parent | d1c0d5e3c63d61226a75f24d5c35fe20755f0180 [diff] |
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>