Patch "Btrfs: fix invalid reference in replace_path" has been added to the 4.5-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
Btrfs: fix invalid reference in replace_path
to the 4.5-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
btrfs-fix-invalid-reference-in-replace_path.patch
and it can be found in the queue-4.5 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
264813acb1c756aebc337b16b832604a0c9aadafMon Sep 17 00:00:00 2001
From: Liu Bo <[email protected]>
Date: Mon, 21 Mar 2016 14:59:53 -0700
Subject: Btrfs: fix invalid reference in replace_path
From: Liu Bo <[email protected]>
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.
--- fs/btrfs/relocation.c | 1 + 1 file changed, 1 insertion(+)
fs/btrfs/relocation.c +1 -0
@@ -1850,6 +1850,7 @@ again: eb =read_tree_block (dest, old_bytenr, old_ptr_gen);if (IS_ERR (eb)) { ret =PTR_ERR (eb); +break ; }else if (!extent_buffer_uptodate (eb)) { ret = -EIO ;free_extent_buffer (eb);
Patches currently in stable-queue which might be from [email protected] are
queue-4.5/btrfs-fix-invalid-reference-in-replace_path.patch queue-4.5/btrfs-fix-deadlock-between-direct-io-reads-and-buffered-writes.patch queue-4.5/btrfs-fix-unreplayable-log-after-snapshot-delete-parent-dir-fsync.patch