Skip to content
Snippets Groups Projects
Unverified Commit 449ac551 authored by David Howells's avatar David Howells Committed by Christian Brauner
Browse files

fscache: Fix error handling in fscache_begin_operation()


Fix fscache_begin_operation() to clear cres->cache_priv on error, otherwise
fscache_resources_valid() will report it as being valid.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/3933237.1710514106@warthog.procyon.org.uk


Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Reported-by: default avatarMarc Dionne <marc.dionne@auristor.com>
cc: Jeff Layton <jlayton@kernel.org>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 59a55a63
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment