Btrfs: check return value of bio_alloc() properly
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Thu, 12 Apr 2012 20:03:56 +0000 (16:03 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 12 Apr 2012 20:03:56 +0000 (16:03 -0400)
commite627ee7bcd42b4e3a03ca01a8e46dcb4033c5ae0
treea6f8060dd57184e79b5c46404c941f999137030d
parentc6664b42c4e567792abdb17c958fb01c5bcfcb3a
Btrfs: check return value of bio_alloc() properly

bio_alloc() has the possibility of returning NULL.
So, it is necessary to check the return value.

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