Re: [PATCH] Btrfs: fix invalid reference in replace_path

2016-03-22 Thread David Sterba
On Mon, Mar 21, 2016 at 02:59:53PM -0700, Liu Bo wrote: > 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 Carpent

[PATCH] Btrfs: fix invalid reference in replace_path

2016-03-21 Thread Liu Bo
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 Reported-by: Dan Carpenter Signed-off-by: Liu Bo --- fs/btrfs/