From: Sunil Mushran Date: Fri, 3 Aug 2012 16:36:17 +0000 (+0100) Subject: ocfs2: Fix oops in ocfs2_fast_symlink_readpage() code path X-Git-Tag: v3.9-rc1~56^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30b9c9e6ba289ba3bb67cc292efcc4122ea37ae5;p=profile%2Fcommon%2Fkernel-common.git ocfs2: Fix oops in ocfs2_fast_symlink_readpage() code path Commit ea022dfb3c2a4680483b00eb2fecc9fc4f6091d1 was missing a var init. Reported-and-Tested-by: Vincent Etienne Signed-off-by: Sunil Mushran Signed-off-by: Joel Becker Signed-off-by: Al Viro --- diff --git a/fs/ocfs2/symlink.c b/fs/ocfs2/symlink.c index f1fbb4b..66edce7 100644 --- a/fs/ocfs2/symlink.c +++ b/fs/ocfs2/symlink.c @@ -57,7 +57,7 @@ static int ocfs2_fast_symlink_readpage(struct file *unused, struct page *page) { struct inode *inode = page->mapping->host; - struct buffer_head *bh; + struct buffer_head *bh = NULL; int status = ocfs2_read_inode_block(inode, &bh); struct ocfs2_dinode *fe; const char *link;