aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/rust/pin-init/internal/src
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-07-25 16:54:49 +0100
committerDavid Sterba <dsterba@suse.com>2025-08-22 00:58:27 +0200
commite87e953bb20629ca1f008f8146c38e313e5ed319 (patch)
treeb7587daa1d3df93797179f9ba03ff46e42b4ea84 /rust/pin-init/internal/src
parentbtrfs: abort transaction on failure to add link to inode (diff)
downloadwireguard-linux-e87e953bb20629ca1f008f8146c38e313e5ed319.tar.xz
wireguard-linux-e87e953bb20629ca1f008f8146c38e313e5ed319.zip
btrfs: fix inode leak on failure to add link to inode
If we fail to update the inode or delete the orphan item we leak the inode since we update its refcount with the ihold() call to account for the d_instantiate() call which never happens in case we fail those steps. Fix this by setting 'drop_inode' to true in case we fail those steps. Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com> Signed-off-by: Filipe Manana <fdmanana@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'rust/pin-init/internal/src')
0 files changed, 0 insertions, 0 deletions