[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y20hkocEEoSNcSvZ@casper.infradead.org>
Date: Thu, 10 Nov 2022 16:06:42 +0000
From: Matthew Wilcox <willy@...radead.org>
To: Rong Tao <rtoax@...mail.com>
Cc: akpm@...ux-foundation.org, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, rongtao@...tc.cn, wuchi.zero@...il.com
Subject: Re: [PATCH] lib/radix-tree: Fix uninitialized variable compilation
warning
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.
Powered by blists - more mailing lists