Skip to contentSkip to conversation

ocfs2: Fix oops in fallocate()

PATCH New Sunil Mushran 1 participant 1 message Jan 30, 2012 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ocfs2: Fix oops in fallocate()

fallocate() was oopsing on ocfs2 because we were passing in a NULL file pointer.

---
 fs/ocfs2/file.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ocfs2/file.c +1 -1
index 061591a..8f30e74 100644
@@ -2012,7 +2012,7 @@ static long ocfs2_fallocate(struct file *file, int mode, loff_t offset,
 	sr.l_start = (s64)offset;
 	sr.l_len = (s64)len;
 
-	return __ocfs2_change_file_space(NULL, inode, offset, cmd, &sr,
+	return __ocfs2_change_file_space(file, inode, offset, cmd, &sr,
 					 change_size);
 }
 
Signature · 1 line
1.7.7.6