]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ocfs2: Fix oops in ocfs2_fast_symlink_readpage() code path
authorXiaowei.Hu <xiaowei.hu@oracle.com>
Wed, 12 Sep 2012 07:40:06 +0000 (15:40 +0800)
committerXiaowei.Hu <xiaowei.hu@oracle.com>
Wed, 12 Sep 2012 07:40:06 +0000 (15:40 +0800)
from ocfs2-devel
Reported-and-Tested-by: Vincent Etienne <vetienne@aprogsys.com>
Signed-off-by: Sunil Mushran <sunil.mushran@gmail.com>
fs/ocfs2/symlink.c

index f1fbb4b552ad3649238becdd9c21d4b138d5c8d7..66edce7ecfd78f807451bdbf724cfabc071dbd5a 100644 (file)
@@ -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;