]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
btrfs: fix lost return value due to variable shadowing
authorDavid Sterba <dsterba@suse.cz>
Tue, 24 Feb 2015 17:57:18 +0000 (18:57 +0100)
committerJiri Slaby <jslaby@suse.cz>
Thu, 12 Mar 2015 16:31:10 +0000 (17:31 +0100)
commit3caad0eda3f36aadd1be4655d431814d2c0b21f7
tree5a29eccd608959e699cea89c3584d0602a61439d
parent8607e6ba3f48a3bab9476c5afd2e3913387eadd7
btrfs: fix lost return value due to variable shadowing

commit 1932b7be973b554ffe20a5bba6ffaed6fa995cdc upstream.

A block-local variable stores error code but btrfs_get_blocks_direct may
not return it in the end as there's a ret defined in the function scope.

Fixes: d187663ef24c ("Btrfs: lock extents as we map them in DIO")
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/btrfs/inode.c