aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/tree-mod-log.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2023-06-08 10:27:38 +0000
committerDavid Sterba <[email protected]>2023-06-19 11:59:38 +0000
commitede600e497b1461d06d22a7d17703d9096868bc3 (patch)
treee50774d777c94039ade4c1581da4c4333224faab /fs/btrfs/tree-mod-log.c
parentbtrfs: add missing error handling when logging operation while COWing extent ... (diff)
downloadkernel-ede600e497b1461d06d22a7d17703d9096868bc3.tar.gz
kernel-ede600e497b1461d06d22a7d17703d9096868bc3.zip
btrfs: fix extent buffer leak after tree mod log failure at split_node()
At split_node(), if we fail to log the tree mod log copy operation, we return without unlocking the split extent buffer we just allocated and without decrementing the reference we own on it. Fix this by unlocking it and decrementing the ref count before returning. Fixes: 5de865eebb83 ("Btrfs: fix tree mod logging") CC: [email protected] # 5.4+ Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/tree-mod-log.c')
0 files changed, 0 insertions, 0 deletions