diff options
author | Jeff Mahoney <jeffm@suse.com> | 2017-12-04 19:11:45 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-12-07 00:30:29 +0100 |
commit | e19182c0fff451e3744c1107d98f072e7ca377a0 (patch) | |
tree | f5bebc158558c68be9852748be356be134f6175d /net | |
parent | btrfs: handle errors while updating refcounts in update_ref_for_cow (diff) | |
download | linux-e19182c0fff451e3744c1107d98f072e7ca377a0.tar.xz linux-e19182c0fff451e3744c1107d98f072e7ca377a0.zip |
btrfs: fix missing error return in btrfs_drop_snapshot
If btrfs_del_root fails in btrfs_drop_snapshot, we'll pick up the
error but then return 0 anyway due to mixing err and ret.
Fixes: 79787eaab4612 ("btrfs: replace many BUG_ONs with proper error handling")
Cc: <stable@vger.kernel.org> # v3.4+
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions