]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
afs: Fix error code in afs_extract_vl_addrs()
authorDan Carpenter <error27@gmail.com>
Mon, 22 Jun 2026 09:08:36 +0000 (10:08 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 1 Jul 2026 13:26:18 +0000 (15:26 +0200)
commit4897cb71d4ab1f7e1a214adb1e4b80176702368d
treed4f02f7d1d91c0ca7230e5fd22bd020cca23e769
parentf3cf725cd284b7912d5522babb44721bf38c8887
afs: Fix error code in afs_extract_vl_addrs()

The error codes on these paths are only set on the first iteration
through the loop.  Set the correct error code on every iteration.

Fixes: 0a5143f2f89c ("afs: Implement VL server rotation")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://patch.msgid.link/20260622090856.2746629-3-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/vl_list.c