btrfs: fix dereference of ERR_PTR value
authorDavid Sterba <dsterba@suse.cz>
Mon, 13 Jun 2011 17:54:22 +0000 (17:54 +0000)
committerChris Mason <chris.mason@oracle.com>
Fri, 17 Jun 2011 18:54:17 +0000 (14:54 -0400)
commit3ed4498caf381a73d6259d3ffacc914b17a507ec
treecfa41f477e31b26a602d5d2e81c52a032071e01d
parente038dca803423bb7a3fa9a162b7dcc225efe9bf9
btrfs: fix dereference of ERR_PTR value

smatch reports:

btrfs_recover_log_trees error: 'wc.replay_dest' dereferencing
possible ERR_PTR()

Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/tree-log.c