aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_zone_alloc.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2025-06-05 06:16:28 +0000
committerCarlos Maiolino <[email protected]>2025-06-16 08:05:08 +0000
commita593c89ac5a417605b165cbc9768b3663ab4d8ad (patch)
treefb805ee8763778adae3b204d24b4d8f52907dbf5 /fs/xfs/xfs_zone_alloc.c
parentxfs: check for shutdown before going to sleep in xfs_select_zone (diff)
downloadkernel-a593c89ac5a417605b165cbc9768b3663ab4d8ad.tar.gz
kernel-a593c89ac5a417605b165cbc9768b3663ab4d8ad.zip
xfs: remove NULL pointer checks in xfs_mru_cache_insert
Remove the check for a NULL mru or mru->list in xfs_mru_cache_insert as this API misused lead to a direct NULL pointer dereference on first use and is not user triggerable. As a smatch run by Dan points out with the recent cleanup it would otherwise try to free the object we just determined to be NULL for this impossible to reach case. Fixes: 70b95cb86513 ("xfs: free the item in xfs_mru_cache_insert on failure") Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Hans Holmberg <[email protected]> Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_zone_alloc.c')
0 files changed, 0 insertions, 0 deletions