diff options
author | Filipe Manana <[email protected]> | 2020-04-17 16:36:15 +0100 |
---|---|---|
committer | David Sterba <[email protected]> | 2020-04-23 17:22:45 +0200 |
commit | 5150bf19635c335109542c19f6b84c7813810873 (patch) | |
tree | f29a3e395db020268f0a040e2c4ac22faedb827a /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | 317ddf3715cd4083e0e5914c17e897e72e779445 (diff) |
btrfs: fix memory leak of transaction when deleting unused block group
When cleaning pinned extents right before deleting an unused block group,
we check if there's still a previous transaction running and if so we
increment its reference count before using it for cleaning pinned ranges
in its pinned extents iotree. However we ended up never decrementing the
reference count after using the transaction, resulting in a memory leak.
Fix it by decrementing the reference count.
Fixes: fe119a6eeb6705 ("btrfs: switch to per-transaction pinned extents")
Signed-off-by: Filipe Manana <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions