The patch titled Subject: ocfs2: fix NULL pointer dereference in __ocfs2_change_file_space() has been removed from the -mm tree. Its filename was ocfs2-fix-null-pointer-dereferrence-in-__ocfs2_change_file_space.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Luis Henriques <luis.henriques@xxxxxxxxxxxxx> Subject: ocfs2: fix NULL pointer dereference in __ocfs2_change_file_space() As ocfs2_fallocate() will invoke __ocfs2_change_file_space() with a NULL as the first parameter (file), it may trigger a NULL pointer dereferrence due to a missing check. Addresses http://bugs.launchpad.net/bugs/1006012 Signed-off-by: Luis Henriques <luis.henriques@xxxxxxxxxxxxx> Reported-by: Bret Towe <magnade@xxxxxxxxx> Tested-by: Bret Towe <magnade@xxxxxxxxx> Cc: Sunil Mushran <sunil.mushran@xxxxxxxxxx> Acked-by: Joel Becker <jlbec@xxxxxxxxxxxx> Acked-by: Mark Fasheh <mfasheh@xxxxxxxx> Cc: <stable@xxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/ocfs2/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN fs/ocfs2/file.c~ocfs2-fix-null-pointer-dereferrence-in-__ocfs2_change_file_space fs/ocfs2/file.c --- a/fs/ocfs2/file.c~ocfs2-fix-null-pointer-dereferrence-in-__ocfs2_change_file_space +++ a/fs/ocfs2/file.c @@ -1950,7 +1950,7 @@ static int __ocfs2_change_file_space(str if (ret < 0) mlog_errno(ret); - if (file->f_flags & O_SYNC) + if (file && (file->f_flags & O_SYNC)) handle->h_sync = 1; ocfs2_commit_trans(osb, handle); _ Patches currently in -mm which might be from luis.henriques@xxxxxxxxxxxxx are origin.patch linux-next.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html