]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
afs: Fix missing NULL pointer check in afs_break_some_callbacks()
authorDavid Howells <dhowells@redhat.com>
Mon, 22 Jun 2026 09:08:49 +0000 (10:08 +0100)
committerChristian Brauner <brauner@kernel.org>
Wed, 1 Jul 2026 13:26:21 +0000 (15:26 +0200)
commit794a01110390c1b76f59ece773fb0fbfd89c6f5c
tree1a7640215d843f740322a790ada843784f33b80e
parent3b1601471a88f86082fc1f1c2475645cdf59f7d8
afs: Fix missing NULL pointer check in afs_break_some_callbacks()

Fix afs_break_some_callbacks() to check to see if afs_lookup_volume_rcu()
returned NULL (e.g. the specified volume is unknown).

Fixes: 8230fd8217b7 ("afs: Make callback processing more efficient.")
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-16-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/callback.c