diff options
author | Tiger Yang <[email protected]> | 2013-08-13 16:00:58 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2013-08-13 17:57:49 -0700 |
commit | c7dd3392ad469e6ba125170ad29f881bed85b678 (patch) | |
tree | bdb444e27e72975da0a3ebad279392fb8b81929d /lib/mpi/mpi-bit.c | |
parent | 6115ea288424c1ead077843b6cd22369dd2e08f9 (diff) |
ocfs2: fix NULL pointer dereference in ocfs2_duplicate_clusters_by_page
Since ocfs2_cow_file_pos will invoke ocfs2_refcount_icow with a NULL as
the struct file pointer, it finally result in a null pointer dereference
in ocfs2_duplicate_clusters_by_page.
This patch replace file pointer with inode pointer in
cow_duplicate_clusters to fix this issue.
[[email protected]: rebased patch against linux-next tree]
Signed-off-by: Tiger Yang <[email protected]>
Signed-off-by: Jie Liu <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Mark Fasheh <[email protected]>
Acked-by: Tao Ma <[email protected]>
Tested-by: David Weber <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions