summaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2025-07-25 18:54:49 +0300
committerDavid Sterba <dsterba@suse.com>2025-08-22 01:58:27 +0300
commite87e953bb20629ca1f008f8146c38e313e5ed319 (patch)
treeb7587daa1d3df93797179f9ba03ff46e42b4ea84 /net/switchdev/switchdev.c
parent2b3979624c3e34dcdd77d910c6490939727d91b2 (diff)
downloadlinux-e87e953bb20629ca1f008f8146c38e313e5ed319.tar.xz
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 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions