aboutsummaryrefslogtreecommitdiff
path: root/lib/memory-notifier-error-inject.c
diff options
context:
space:
mode:
authorXiaowei.Hu <[email protected]>2013-06-12 14:04:41 -0700
committerLinus Torvalds <[email protected]>2013-06-12 16:29:44 -0700
commit7869e590679ed71cd1a1e676e8c1c179762c3efe (patch)
treee94ea4a98ccd296ca9209694ccab937ecb780c4e /lib/memory-notifier-error-inject.c
parent5402b8047b0d286b6501f9097891cbf1e06daa3a (diff)
ocfs2: ocfs2_prep_new_orphaned_file() should return ret
If an error occurs, for example an EIO in __ocfs2_prepare_orphan_dir, ocfs2_prep_new_orphaned_file will release the inode_ac, then when the caller of ocfs2_prep_new_orphaned_file gets a 0 return, it will refer to a NULL ocfs2_alloc_context struct in the following functions. A kernel panic happens. Signed-off-by: "Xiaowei.Hu" <[email protected]> Reviewed-by: shencanquan <[email protected]> Acked-by: Sunil Mushran <[email protected]> Cc: Joe Jin <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Joel Becker <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions