linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] slub: correct return errno on slab_sysfs_init failure
@ 2014-06-12 12:56 Jeff Liu
  2014-06-13  6:57 ` Pekka Enberg
  2014-06-13 15:53 ` Christoph Lameter
  0 siblings, 2 replies; 9+ messages in thread
From: Jeff Liu @ 2014-06-12 12:56 UTC (permalink / raw)
  To: linux-mm; +Cc: cl, penberg, mpm

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

Return ENOMEM instead of ENOSYS if slab_sysfs_init() 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 2b1ce69..75ca109 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -5304,7 +5304,7 @@ static int __init slab_sysfs_init(void)
 	if (!slab_kset) {
 		mutex_unlock(&slab_mutex);
 		printk(KERN_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	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-06-16 15:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-12 12:56 [PATCH] slub: correct return errno on slab_sysfs_init failure Jeff Liu
2014-06-13  6:57 ` Pekka Enberg
2014-06-14  7:44   ` Jeff Liu
2014-06-13 15:53 ` Christoph Lameter
2014-06-14  7:46   ` Jeff Liu
2014-06-16 14:00     ` Christoph Lameter
2014-06-16 14:59       ` Jeff Liu
2014-06-16 15:25         ` Christoph Lameter
2014-06-16 15:31           ` Jeff Liu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox