diff options
author | 2025-03-04 15:48:16 +0000 | |
---|---|---|
committer | 2025-03-05 11:48:27 +0100 | |
commit | efbdd92ed9f6a8a2def057fe25de3ef54032ddef (patch) | |
tree | 59bb17b7fd824056c11020a1c053208279ca3583 /scripts/generate_rust_analyzer.py | |
parent | Merge patch series "Remove accesses to page->index from ceph" (diff) | |
download | wireguard-linux-efbdd92ed9f6a8a2def057fe25de3ef54032ddef.tar.xz wireguard-linux-efbdd92ed9f6a8a2def057fe25de3ef54032ddef.zip |
ceph: Fix error handling in fill_readdir_cache()
__filemap_get_folio() returns an ERR_PTR, not NULL. There are extensive
assumptions that ctl->folio is NULL, not an error pointer, so it seems
better to fix this one place rather than change all the places which
check ctl->folio.
Fixes: baff9740bc8f ("ceph: Convert ceph_readdir_cache_control to store a folio")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Link: https://lore.kernel.org/r/20250304154818.250757-1-willy@infradead.org
Cc: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions