diff options
author | Luis Henriques <luis.henriques@canonical.com> | 2012-07-11 14:02:10 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-07-16 09:04:45 -0700 |
commit | bb2b649805527af1d823f871e7e3a95c4e6a018e (patch) | |
tree | b247be4fc93d60ee914b2f78a02e97956682dc7e /drivers/pci/ioapic.c | |
parent | 7ad71f960f0f6e06cbded278809674afc515036a (diff) |
ocfs2: fix NULL pointer dereference in __ocfs2_change_file_space()
commit a4e08d001f2e50bb8b3c4eebadcf08e5535f02ee upstream.
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pci/ioapic.c')
0 files changed, 0 insertions, 0 deletions