gfs2: return actual error on gfs2_sys_ini
PATCH 17/24 gfs2: return actual error on gfs2_sys_ini
From: Jie Liu <[email protected]>
Return the actual error code if call kset_create_and_add() failed
Cc Steven Whitehouse <[email protected]>
Signed-off-by Jie Liu <[email protected]>
--- fs/gfs2/sys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
fs/gfs2/sys.c +2 -2
@@ -699,8 +699,8 @@ static const struct kset_uevent_ops gfs2_uevent_ops = {int gfs2_sys_init (void ) { gfs2_kset =kset_create_and_add ("gfs2" , &gfs2_uevent_ops, fs_kobj); -if (!gfs2_kset) -return -ENOMEM ; +if (IS_ERR (gfs2_kset)) +return PTR_ERR (gfs2_kset);return 0 ; }
Signature · 1 line
1.8.3.2
PATCH 17/24 gfs2: return actual error on gfs2_sys_ini
Hi,
Quoted 6 lines · Jeff Liu
From: Jie Liu <[email protected]>
Return the actual error code if call
kset_create_and_add()failedCc Steven Whitehouse <[email protected]>Signed-off-by Jie Liu <[email protected]>
Please ignore this patch as well as another one for DLM:
[PATCH 19/24] fs/dlm: return actual error on dlm_lockspace_init
Cheers,
-Jeff