Commit 0a6d6945 authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: Fix folio leak in folio_hole_offset()

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent e2bd0617
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment