projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2bd061
)
bcachefs: Fix folio leak in folio_hole_offset()
author
Kent Overstreet
<kent.overstreet@linux.dev>
Thu, 3 Aug 2023 07:29:42 +0000
(
03:29
-0400)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:09 +0000
(17:10 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs-io.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/bcachefs/fs-io.c
b/fs/bcachefs/fs-io.c
index 0661dfd9a8d02921be5b5c950577abbcdf6e6826..c461b65ab57a5a2df203a7d23a530c98ede374d6 100644
(file)
--- 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;
}