+ ocfs2-ocfs2_prep_new_orphaned_file-should-return-ret.patch added to -mm tree
Subject: + ocfs2-ocfs2_prep_new_orphaned_file-should-return-ret.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 28 May 2013 15:35:27 -0700
The patch titled
Subject: ocfs2: ocfs2_prep_new_orphaned_file() should return ret
has been added to the -mm tree. Its filename is
ocfs2-ocfs2_prep_new_orphaned_file-should-return-ret.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: "Xiaowei.Hu" <[email protected]>
Subject: 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.
---
fs/ocfs2/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/ocfs2/namei.c renamed from fs/ocfs2/namei.c~ocfs2-ocfs2_prep_new_orphaned_file-should-return-ret +1 -1
@@ -2216,7 +2216,7 @@ out:brelse (orphan_dir_bh); -return 0 ; +return ret; } int ocfs2_create_inode_in_orphan(struct inode *dir,
_
Patches currently in -mm which might be from [email protected] are
ocfs2-ocfs2_prep_new_orphaned_file-should-return-ret.patch