linux/fs/fscache
Dan Carpenter 4200ad3e46 netfs, fscache: Prevent Oops in fscache_put_cache()
[ Upstream commit 3be0b3ed1d ]

This function dereferences "cache" and then checks if it's
IS_ERR_OR_NULL().  Check first, then dereference.

Fixes: 9549332df4 ("fscache: Implement cache registration")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/e84bc740-3502-4f16-982a-a40d5676615c@moroto.mountain/ # v2
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-31 16:21:06 -08:00
..
cache.c netfs, fscache: Prevent Oops in fscache_put_cache() 2024-01-31 16:21:06 -08:00
cookie.c fscache: Fix oops due to race with cookie_lru and use_cookie 2022-12-07 11:49:18 -08:00
internal.h fscache: Move fscache_cookies_seq_ops specific code under CONFIG_PROC_FS 2022-04-08 23:54:37 +01:00
io.c use less confusing names for iov_iter direction initializers 2022-11-25 13:01:55 -05:00
Kconfig fscache: remove FSCACHE_OLD_API Kconfig option 2022-04-08 23:54:37 +01:00
main.c fscache: Implement cookie-level access helpers 2022-01-07 09:22:19 +00:00
Makefile fscache: Provide a means to begin an operation 2022-01-07 09:22:19 +00:00
proc.c fscache: Implement cookie registration 2022-01-07 09:22:19 +00:00
stats.c fscache, cachefiles: Display stat of culling events 2022-01-07 13:43:18 +00:00
volume.c fscache: Use clear_and_wake_up_bit() in fscache_create_volume_work() 2023-01-30 12:51:54 +00:00