diff options
author | Jeff Mahoney <jeffm@suse.com> | 2017-12-04 13:11:45 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-12-14 09:28:12 +0100 |
commit | 8974b0320cc83b99a86d5fcca51e7c875254ec0d (patch) | |
tree | 0c4f7ed4a59c5a8491975c5710340915a1031cb1 /sound | |
parent | 9cf0eaf88d74e54c48b4f9580332e596b9d04290 (diff) |
btrfs: fix missing error return in btrfs_drop_snapshot
commit e19182c0fff451e3744c1107d98f072e7ca377a0 upstream.
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")
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions