diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-08-03 03:29:42 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:10:09 -0400 |
commit | 0a6d694584aeb739b976bf69646fa3c23ee117c3 (patch) | |
tree | 8cbf5075356c248d141ac9e70845fd36c5c6e3ea /fs/bcachefs/fs-io.c | |
parent | e2bd06178c458d0178265f75d7210e6c090bbfdb (diff) | |
download | lwn-0a6d694584aeb739b976bf69646fa3c23ee117c3.tar.gz lwn-0a6d694584aeb739b976bf69646fa3c23ee117c3.zip |
bcachefs: Fix folio leak in folio_hole_offset()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/fs-io.c')
-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; } |