linux/fs/afs
David Howells ff98751bae
afs: Fix the setting of the server responding flag
In afs_wait_for_operation(), we set transcribe the call responded flag to
the server record that we used after doing the fileserver iteration loop -
but it's possible to exit the loop having had a response from the server
that we've discarded (e.g. it returned an abort or we started receiving
data, but the call didn't complete).

This means that op->server might be NULL, but we don't check that before
attempting to set the server flag.

Fixes: 98f9fda205 ("afs: Fold the afs_addr_cursor struct in")
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/20240923150756.902363-7-dhowells@redhat.com
cc: Marc Dionne <marc.dionne@auristor.com>
cc: linux-afs@lists.infradead.org
Signed-off-by: Christian Brauner <brauner@kernel.org>
2024-09-27 18:29:20 +02:00
..
addr_list.c
addr_prefs.c
afs_cm.h
afs_fs.h
afs_vl.h afs: Remove unused struct and function prototype 2024-09-27 18:29:19 +02:00
afs.h
callback.c
cell.c
cmservice.c
dir_edit.c afs: drop usage of folio_file_pos 2024-07-03 19:29:55 -07:00
dir_silly.c
dir.c afs: drop usage of folio_file_pos 2024-07-03 19:29:55 -07:00
dynroot.c
file.c afs: Fix missing wire-up of afs_retry_request() 2024-09-27 18:29:19 +02:00
flock.c afs: adapt to breakup of struct file_lock 2024-02-05 13:11:42 +01:00
fs_operation.c afs: Fix the setting of the server responding flag 2024-09-27 18:29:20 +02:00
fs_probe.c afs: Fix possible infinite loop with unresponsive servers 2024-09-27 18:29:19 +02:00
fsclient.c netfs: Speed up buffered reading 2024-09-12 12:20:41 +02:00
inode.c afs: Fix post-setattr file edit to do truncation correctly 2024-08-24 16:09:16 +02:00
internal.h netfs, afs: Use writeback retry to deal with alternate keys 2024-05-01 18:07:38 +01:00
Kconfig
main.c afs: Fix ignored callbacks over ipv4 2024-02-20 09:51:21 +01:00
Makefile
misc.c
mntpt.c afs: Don't cross .backup mountpoint from backup volume 2024-05-25 14:02:40 +02:00
proc.c
protocol_afs.h
protocol_uae.h
protocol_yfs.h
rotate.c afs: Fix possible infinite loop with unresponsive servers 2024-09-27 18:29:19 +02:00
rxrpc.c
security.c
server_list.c
server.c afs: Fix ignored callbacks over ipv4 2024-02-20 09:51:21 +01:00
super.c
validation.c afs: Use alternative invalidation to using launder_folio 2024-05-01 18:07:34 +01:00
vl_alias.c
vl_list.c
vl_probe.c
vl_rotate.c
vlclient.c
volume.c afs: Increase buffer size in afs_update_volume_status() 2024-02-20 09:51:21 +01:00
write.c netfs: Move max_len/max_nr_segs from netfs_io_subrequest to netfs_io_stream 2024-09-05 11:00:41 +02:00
xattr.c
xdr_fs.h
yfsclient.c netfs: Speed up buffered reading 2024-09-12 12:20:41 +02:00