btrfs: avoid NULL deref in btrfs_reserve_extent with DEBUG_ENOSPC
authorJeff Mahoney <jeffm@suse.com>
Thu, 1 Mar 2012 13:56:28 +0000 (14:56 +0100)
committerDavid Sterba <dsterba@suse.cz>
Thu, 22 Mar 2012 00:45:32 +0000 (01:45 +0100)
commit538042801a479ebd316582ad10a9c3156b5b7548
tree06582e3ca9e4d8a7c0c4117ee448bfda67b73092
parentd5c13f927fe77b11a67f79559808c68b26474c77
btrfs: avoid NULL deref in btrfs_reserve_extent with DEBUG_ENOSPC

 __find_space_info can return NULL but we don't check it before calling
 dump_space_info().

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
fs/btrfs/extent-tree.c