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

From: Christoph Lameter
Date: Tue Jun 17 2014 - 12:29:41 EST


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.

--
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/