Skip to contentSkip to conversation

ocfs2: Fix oops in ocfs2_fast_symlink_readpage() code path

PATCH New sunil.mushran at gmail.com 2 participants 2 messages Aug 3, 2012 – Aug 15, 2012 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ocfs2: Fix oops in ocfs2_fast_symlink_readpage() code path

From: Sunil Mushran <[email protected]>

Commit ea022dfb3c2a4680483b00eb2fecc9fc4f6091d1 was missing a var init.

---
 fs/ocfs2/symlink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ocfs2/symlink.c +1 -1
index f1fbb4b..66edce7 100644
@@ -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;
Signature · 1 line
1.7.4.4
maintainer
#1 lore raw

PATCH 1/1 ocfs2: Fix oops in ocfs2_fast_symlink_readpage() code path

Quoted 6 lines · sunil.mushran at gmail.com

From: Sunil Mushran <[email protected]>

Commit ea022dfb3c2a4680483b00eb2fecc9fc4f6091d1 was missing a var init.

This patch is now part of the fixes branch of ocfs2.git.

Joel

Quoted 20 lines
---
 fs/ocfs2/symlink.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ocfs2/symlink.c +1 -1
index f1fbb4b..66edce7 100644
@@ -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;
Signature · 1 line
1.7.4.4
Signature · 7 lines
"Born under a bad sign.
 I been down since I began to crawl.
 If it wasn't for bad luck,
 I wouldn't have no luck at all."

			http://www.jlbec.org/
			jlbec at evilplan.org