diff options
author | Luis Henriques <luis.henriques@canonical.com> | 2012-07-11 23:02:10 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-12 01:04:43 +0200 |
commit | a4e08d001f2e50bb8b3c4eebadcf08e5535f02ee (patch) | |
tree | 6ab47d995bd4c0a3a388dcbc11ffbe775274d88c /fs/inode.c | |
parent | mn10300: use "#elif defined(CONFIG_*)" instead of "#elif CONFIG_*" (diff) | |
download | linux-a4e08d001f2e50bb8b3c4eebadcf08e5535f02ee.tar.xz linux-a4e08d001f2e50bb8b3c4eebadcf08e5535f02ee.zip |
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>
Diffstat (limited to 'fs/inode.c')
0 files changed, 0 insertions, 0 deletions