]> 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)
commit4f3b0cdbf72126ff00d641ea6e20688efe421604
treea6f8060dd57184e79b5c46404c941f999137030d
parenta1a719834ceb2e3c46098962ec124f7df1533907
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