Re: [PATCH] lib/radix-tree: Fix uninitialized variable compilation warning

From: Matthew Wilcox
Date: Thu Nov 10 2022 - 11:06:49 EST


On Thu, Nov 10, 2022 at 01:00:42PM +0800, Rong Tao wrote:
> radix_tree_load_root(root, &node, &maxindex);
> - if (index > maxindex)
> + if (index > maxindex || !node)
> return NULL;

No, stop it, you don't know what you're doing.