Message ID | 53A05121.1040100@oracle.com (mailing list archive) |
---|---|
State | Rejected |
Headers | show |
Hi, On 06/17/2014 22:30 PM, Jeff Liu wrote: > From: Jie Liu <jeff.liu@oracle.com> > > Return the actual error code than ENOMEM if call kset_create_and_add() > failed at pdc_stable_init(). > > Cc: James E.J. Bottomley <jejb@parisc-linux.org> > Cc: Helge Deller <deller@gmx.de> > Signed-off-by: Jie Liu <jeff.liu@oracle.com> > Please ignore this patch because Greg think that is incorrect. Cheers, -Jeff -- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/parisc/pdc_stable.c b/drivers/parisc/pdc_stable.c index 0f54ab6..3daca50 100644 --- a/drivers/parisc/pdc_stable.c +++ b/drivers/parisc/pdc_stable.c @@ -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; }