Btrfs: check for NULL pointer in updating reloc roots
authorLiu Bo <bo.li.liu@oracle.com>
Mon, 4 Mar 2013 16:25:36 +0000 (16:25 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 4 Mar 2013 21:33:22 +0000 (16:33 -0500)
commit8f71f3e0e4fb5a2445fb93d3057a33aefc4aa30d
tree3a138ce21038700b6cd81db196740de9657927a4
parent00d71c9c17b1fd28fa54f323a29a0e23c6d3de40
Btrfs: check for NULL pointer in updating reloc roots

Add a check for NULL pointer to avoid invalid reference.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/relocation.c