aboutsummaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/slub.c')
-rw-r--r--mm/slub.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mm/slub.c b/mm/slub.c
index e27472368cc3..4cd7bfd2ab2c 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -2984,8 +2984,10 @@ static int slab_memory_callback(struct notifier_block *self,
2984 case MEM_CANCEL_OFFLINE: 2984 case MEM_CANCEL_OFFLINE:
2985 break; 2985 break;
2986 } 2986 }
2987 2987 if (ret)
2988 ret = notifier_from_errno(ret); 2988 ret = notifier_from_errno(ret);
2989 else
2990 ret = NOTIFY_OK;
2989 return ret; 2991 return ret;
2990} 2992}
2991 2993
@@ -3662,7 +3664,7 @@ static int list_locations(struct kmem_cache *s, char *buf,
3662 for (i = 0; i < t.count; i++) { 3664 for (i = 0; i < t.count; i++) {
3663 struct location *l = &t.loc[i]; 3665 struct location *l = &t.loc[i];
3664 3666
3665 if (len > PAGE_SIZE - 100) 3667 if (len > PAGE_SIZE - KSYM_SYMBOL_LEN - 100)
3666 break; 3668 break;
3667 len += sprintf(buf + len, "%7ld ", l->count); 3669 len += sprintf(buf + len, "%7ld ", l->count);
3668 3670