diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-08-03 10:29:42 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-23 00:10:09 +0300 |
commit | 0a6d694584aeb739b976bf69646fa3c23ee117c3 (patch) | |
tree | 8cbf5075356c248d141ac9e70845fd36c5c6e3ea /fs/bcachefs | |
parent | e2bd06178c458d0178265f75d7210e6c090bbfdb (diff) | |
download | linux-0a6d694584aeb739b976bf69646fa3c23ee117c3.tar.xz |
bcachefs: Fix folio leak in folio_hole_offset()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs')
-rw-r--r-- | fs/bcachefs/fs-io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/fs-io.c b/fs/bcachefs/fs-io.c index 0661dfd9a8d0..c461b65ab57a 100644 --- a/fs/bcachefs/fs-io.c +++ b/fs/bcachefs/fs-io.c @@ -3830,6 +3830,7 @@ static bool folio_hole_offset(struct address_space *mapping, loff_t *offset, ret = false; unlock: folio_unlock(folio); + folio_put(folio); return ret; } |