]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6b946643f1669fbc1c088ec147d66750c3804d95
treea6f8060dd57184e79b5c46404c941f999137030d
parent7f24b624660da8038c455c082fd7fb4ec7b7bf25
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