Btrfs: uninitialized data is check_path_shared()
authorDan Carpenter <error27@gmail.com>
Tue, 1 Jun 2010 08:23:11 +0000 (08:23 +0000)
committerChris Mason <chris.mason@oracle.com>
Fri, 11 Jun 2010 15:46:12 +0000 (11:46 -0400)
commit0e4dcbef1c0c3e29f9c7f824359445d385b2649a
treecb360bec033ae7bbf237aedd84528c83f2715d47
parent836097797236fd727f82ec2f3f376ac41a430876
Btrfs: uninitialized data is check_path_shared()

refs can be used with uninitialized data if btrfs_lookup_extent_info()
fails on the first pass through the loop.  In the original code if that
happens then check_path_shared() probably returns 1, this patch
changes it to return 1 for safety.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c