Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netfs, fscache: Prevent Oops in fscache_put_cache()
[ Upstream commit 3be0b3e ] This function dereferences "cache" and then checks if it's IS_ERR_OR_NULL(). Check first, then dereference. Fixes: 9549332 ("fscache: Implement cache registration") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: David Howells <[email protected]> Link: https://lore.kernel.org/r/[email protected]/ # v2 Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information