]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Btrfs: fix invalid reference in replace_path
authorLiu Bo <bo.li.liu@oracle.com>
Mon, 21 Mar 2016 21:59:53 +0000 (14:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2016 01:35:17 +0000 (18:35 -0700)
commit24469ab4f3b7dd6fef36787bad42b2f75053556e
tree583cdae9c7a755bc801b86d6d6eb8ea63f684667
parentb96513cce7b82c66f6d1ff87261d65d7cda08861
Btrfs: fix invalid reference in replace_path

commit 264813acb1c756aebc337b16b832604a0c9aadaf upstream.

Dan Carpenter's static checker has found this error, it's introduced by
commit 64c043de466d
("Btrfs: fix up read_tree_block to return proper error")

It's really supposed to 'break' the loop on error like others.

Cc: Dan Carpenter <dan.carpenter@oracle.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Liu Bo <bo.li.liu@oracle.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>
fs/btrfs/relocation.c