ocfs2: Fix oops in fallocate()
PATCH 1/1 ocfs2: Fix oops in fallocate()
fallocate() was oopsing on ocfs2 because we were passing in a NULL file pointer.
Signed-off-by Sunil Mushran <[email protected]>
--- fs/ocfs2/file.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ocfs2/file.c +1 -1
@@ -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