]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
afs: Fix vllist leak
authorDavid Howells <dhowells@redhat.com>
Mon, 22 Jun 2026 09:08:51 +0000 (10:08 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 1 Jul 2026 13:26:21 +0000 (15:26 +0200)
commitfc10c0ecf06f2981af5d04357612b00051e03e9e
tree96cc9f82e9998ea6417091d97c09e551bec90ab7
parentd672c276f685a540ed2b2a8bafaed4650a89022c
afs: Fix vllist leak

Fix a leak of the new vllist in afs_update_cell() in the event that it is an
empty list (nr_servers == 0), in which case the old list isn't displaced
unless the old list is also empty.

Fixes: d5c32c89b208 ("afs: Fix cell DNS lookup")
Closes: https://sashiko.dev/#/patchset/20260609081738.770127-1-dhowells%40redhat.com
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://patch.msgid.link/20260622090856.2746629-18-dhowells@redhat.com
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: Christian Brauner (Amutable) <brauner@kernel.org>
fs/afs/cell.c