Re: [PATCH] afs: Fix uninit var in afs_alloc_anon_key()

From: Linus Torvalds

Date: Fri Nov 28 2025 - 19:49:39 EST


I've applied this directly, since it seems to be a recent regression
and final 6.18 is days away.

And it seems like an obvious fix. Famous last words...

Linus

On Fri, 28 Nov 2025 at 16:40, David Howells <dhowells@xxxxxxxxxx> wrote:
>
> Fix an uninitialised variable (key) in afs_alloc_anon_key() by setting it
> to cell->anonymous_key. Without this change, the error check may return a
> false failure with a bad error number.