diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2022-07-18 19:06:24 +0000 |
|---|---|---|
| committer | Steve French <[email protected]> | 2022-08-01 06:34:44 +0000 |
| commit | c6f62f81b488d00afaa86bae26c6ce9ab12c709e (patch) | |
| tree | cc6c26751f0ce276a15e4e79a165689be7cbb440 /lib/bitmap.c | |
| parent | cifs: remove minor build warning (diff) | |
| download | kernel-c6f62f81b488d00afaa86bae26c6ce9ab12c709e.tar.gz kernel-c6f62f81b488d00afaa86bae26c6ce9ab12c709e.zip | |
cifs: Fix memory leak when using fscache
If we hit the 'index == next_cached' case, we leak a refcount on the
struct page. Fix this by using readahead_folio() which takes care of
the refcount for you.
Fixes: 0174ee9947bd ("cifs: Implement cache I/O by accessing the cache directly")
Cc: David Howells <[email protected]>
Cc: Jeff Layton <[email protected]>
Signed-off-by: Matthew Wilcox (Oracle) <[email protected]>
Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions
