[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3978535.1739538228@warthog.procyon.org.uk>
Date: Fri, 14 Feb 2025 13:03:48 +0000
From: David Howells <dhowells@...hat.com>
To: Max Kellermann <max.kellermann@...os.com>
Cc: dhowells@...hat.com, Johannes Berg <johannes@...solutions.net>,
netfs@...ts.linux.dev, linux-kernel@...r.kernel.org,
stable@...r.kernel.org
Subject: Re: [PATCH v6.13] fs/netfs/read_collect: fix crash due to uninitialized `prev` variable
Max Kellermann <max.kellermann@...os.com> wrote:
> prev = list_prev_entry(subreq, rreq_link);
> ...
> + if (subreq->start == prev->start + prev->len) {
> + prev = list_prev_entry(subreq, rreq_link);
Actually, that doubles the setting of prev redundantly. It shouldn't hurt,
but we might want to remove the inner one.
David
Powered by blists - more mailing lists