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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux