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)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 15:03:34 +0000 (20:03 +0530)
commite902d55b48eaec509eae45f358a9a291ec844643
tree64ca3395f98640f9ed556d5b6af3bbe46c740e89
parent9c6342164131e84f6084d1f50d08ec8c15ad0deb
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