This patch fixes Bug 49921 - Missing NULL check of return value of logfs_get_write_page() in function btree_write_block()
Signed-off-by: Abhijit Pawar <[email protected]> --- fs/logfs/readwrite.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/logfs/readwrite.c b/fs/logfs/readwrite.c index e1a3b6b..53596ce 100644 --- a/fs/logfs/readwrite.c +++ b/fs/logfs/readwrite.c @@ -2202,6 +2202,7 @@ void btree_write_block(struct logfs_block *block) inode = logfs_safe_iget(block->sb, block->ino, &cookie); page = logfs_get_write_page(inode, block->bix, block->level); + BUG_ON(!page); err = logfs_readpage_nolock(page); BUG_ON(err); -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

