linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RESEND] slub: return correct error on slab_sysfs_init
@ 2014-06-18  1:29 Jeff Liu
  2014-06-18 20:16 ` David Rientjes
  0 siblings, 1 reply; 9+ messages in thread
From: Jeff Liu @ 2014-06-18  1:29 UTC (permalink / raw)
  To: linux-mm@kvack.org; +Cc: Christoph Lameter, Pekka Enberg, Matt Mackall

From: Jie Liu <jeff.liu@oracle.com>

Return -ENOMEM than -ENOSYS if kset_create_and_add() failed

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
---
 mm/slub.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/slub.c b/mm/slub.c
index b2b0473..e10f60f 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -5301,7 +5301,7 @@ static int __init slab_sysfs_init(void)
 	if (!slab_kset) {
 		mutex_unlock(&slab_mutex);
 		pr_err("Cannot register slab subsystem.\n");
-		return -ENOSYS;
+		return -ENOMEM;
 	}
 
 	slab_state = FULL;
-- 
1.8.3.2

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-06-23 13:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-18  1:29 [PATCH RESEND] slub: return correct error on slab_sysfs_init Jeff Liu
2014-06-18 20:16 ` David Rientjes
2014-06-19 14:39   ` Christoph Lameter
2014-06-19 20:32     ` Andrew Morton
2014-06-19 21:34       ` David Rientjes
2014-06-20 13:51       ` Jeff Liu
2014-06-20 22:30         ` David Rientjes
2014-06-21  8:49           ` Jeff Liu
2014-06-23 13:59             ` Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).