ext4: add check to io_submit_init_bio
authorTheodore Ts'o <tytso@mit.edu>
Thu, 6 Jun 2013 14:18:22 +0000 (10:18 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 6 Jun 2013 14:18:22 +0000 (10:18 -0400)
commita1d8d9a757cd46e044a3f6061c315eda14bf697e
tree1f8cda247a0f1e0f6eb8346da151e64b5d46e0ed
parent5dc23bdd5f846ef868e82f789dfd9b13093f9ba6
ext4: add check to io_submit_init_bio

The bio_alloc() function can return NULL if the memory allocation
fails.  So we need to check for this.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/page-io.c