Luis Henriques a4e08d001f 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@canonical.com>
Reported-by: Bret Towe <magnade@gmail.com>
Tested-by: Bret Towe <magnade@gmail.com>
Cc: Sunil Mushran <sunil.mushran@oracle.com>
Acked-by: Joel Becker <jlbec@evilplan.org>
Acked-by: Mark Fasheh <mfasheh@suse.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2012-07-11 16:04:43 -07:00
..
2011-07-25 14:30:23 -04:00
2011-07-28 02:07:16 -07:00
2010-09-10 09:18:15 -07:00
2009-04-03 11:39:16 -07:00
2012-05-29 23:28:33 -04:00
2011-07-25 14:58:15 -07:00
2012-05-29 23:28:40 -04:00
2011-07-28 02:07:16 -07:00
2012-05-29 23:28:35 -04:00
2011-03-07 16:43:21 +08:00
2011-02-21 11:18:23 +08:00
2008-10-13 13:57:57 -07:00
2011-07-24 10:36:54 -07:00
2012-05-29 23:28:40 -04:00
2008-02-03 17:33:42 +02:00
2011-05-23 23:37:20 -07:00
2011-03-31 11:26:23 -03:00
2011-07-24 10:34:54 -07:00
2012-01-04 08:56:31 -06:00
2011-03-31 11:26:23 -03:00
2012-05-29 23:28:40 -04:00
2012-05-29 23:28:40 -04:00
2011-02-24 16:22:20 +08:00
2008-01-25 15:05:46 -08:00
2012-01-03 22:55:02 -05:00
2012-01-03 22:55:02 -05:00