drivers/parisc: return actual error on pdc_stable_init
PATCH 12/24 drivers/parisc: return actual error on pdc_stable_init
From: Jie Liu <[email protected]>
Return the actual error code than ENOMEM if call kset_create_and_add() failed at pdc_stable_init().
Cc James E.J. Bottomley <[email protected]>
Cc Helge Deller <[email protected]>
Signed-off-by Jie Liu <[email protected]>
--- drivers/parisc/pdc_stable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/parisc/pdc_stable.c +2 -2
@@ -1065,8 +1065,8 @@ pdc_stable_init(void)/* register the paths kset as a child of the stable kset */ paths_kset =kset_create_and_add ("paths" ,NULL , stable_kobj); -if (!paths_kset) { - rc = -ENOMEM ; +if (IS_ERR (paths_kset)) { + rc =PTR_ERR (paths_kset); goto fail_ksetreg; }
Signature · 1 line
1.8.3.2
Hi,
Quoted 9 lines · Jeff Liu
From: Jie Liu <[email protected]>
Return the actual error code than ENOMEM if call
kset_create_and_add()failed atpdc_stable_init().Cc James E.J. Bottomley <[email protected]>Cc Helge Deller <[email protected]>Signed-off-by Jie Liu <[email protected]>
Please ignore this patch because Greg think that is incorrect.
Cheers,
-Jeff