btrfs: checking NULL or not in some functions
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Tue, 1 Feb 2011 09:17:35 +0000 (09:17 +0000)
committerChris Mason <chris.mason@oracle.com>
Tue, 1 Feb 2011 12:16:37 +0000 (07:16 -0500)
commit5df67083488ccbad925f583b698ab38f8629a016
treeec428f27f1b72c4d8e284831d4bef8894b2b8457
parentc87fb6fdcaf7560940b31a0c78c3e6370e3433cf
btrfs: checking NULL or not in some functions

Because NULL is returned when the memory allocation fails,
it is checked whether it is NULL.

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c
fs/btrfs/extent_io.c
fs/btrfs/tree-log.c