diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 20b30162e7b4f372b7cedc4d93b0175395094479..650099597dd2d8338dd7388b864fa97aee29e184 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1085,8 +1085,10 @@ static int f2fs_mpage_readpages(struct address_space *mapping, } if (bio == NULL) { bio = f2fs_grab_bio(inode, block_nr, nr_pages); - if (IS_ERR(bio)) + if (IS_ERR(bio)) { + bio = NULL; goto set_error_page; + } } if (bio_add_page(bio, page, blocksize, 0) < blocksize)