Skip to content
Commit 18ac6185 authored by David Howells's avatar David Howells
Browse files

afs: Fix callback handling

In some circumstances, the callback interest pointer is NULL, so in such a
case we can't dereference it when checking to see if the callback is
broken.  This causes an oops in some circumstances.

Fix this by replacing the function that worked out the aggregate break
counter with one that actually does the comparison, and then make that
return true (ie. broken) if there is no callback interest as yet (ie. the
pointer is NULL).

Fixes: 68251f0a

 ("afs: Fix whole-volume callback handling")
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
parent 2feeaf84
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment