ocfs2: Fix oops in ocfs2_fast_symlink_readpage() code path
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.
Reported-and-Tested-by Vincent Etienne <[email protected]>
Signed-off-by Sunil Mushran <[email protected]>
--- fs/ocfs2/symlink.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ocfs2/symlink.c +1 -1
@@ -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
Joel Becker
maintainerPATCH 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
ea022dfb3c2a4680483b00eb2fecc9fc4f6091d1was missing a var init.Reported-and-Tested-by Vincent Etienne <[email protected]>Signed-off-by Sunil Mushran <[email protected]>
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@@ -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