Re: [PATCH 01/24] kobject: return actual error on kset_create_and_add

From: James Bottomley
Date: Tue Jun 17 2014 - 12:55:01 EST


On Tue, 2014-06-17 at 11:29 -0500, Christoph Lameter wrote:
> On Tue, 17 Jun 2014, James Bottomley wrote:
>
> > What useful information does this supply? The current assumption on
> > NULL return is -ENOMEM ... what's the interesting case where this
> > assumption is wrong?
>
> No idea. Sysfs just ignored all error codes and returns NULL right now.
> If it is indeed just ENOMEN then we have no issue.

Well, I think when we have that justification, then we can decide on the
merits of the patch set.

James


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/