mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mm/cma_debug.c: align the name buffer length as struct cma
@ 2022-07-19  9:15 Kassey Li
  2022-07-19 23:18 ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Kassey Li @ 2022-07-19  9:15 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, Kassey Li

Signed-off-by: Kassey Li <quic_yingangl@quicinc.com>
---
 mm/cma_debug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/cma_debug.c b/mm/cma_debug.c
index 2e7704955f4f..c3ffe253e055 100644
--- a/mm/cma_debug.c
+++ b/mm/cma_debug.c
@@ -163,7 +163,7 @@ DEFINE_DEBUGFS_ATTRIBUTE(cma_alloc_fops, NULL, cma_alloc_write, "%llu\n");
 static void cma_debugfs_add_one(struct cma *cma, struct dentry *root_dentry)
 {
 	struct dentry *tmp;
-	char name[16];
+	char name[CMA_MAX_NAME];
 
 	scnprintf(name, sizeof(name), "cma-%s", cma->name);
 
-- 
2.17.1


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

end of thread, other threads:[~2022-07-20 17:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-19  9:15 [PATCH] mm/cma_debug.c: align the name buffer length as struct cma Kassey Li
2022-07-19 23:18 ` Andrew Morton
2022-07-20 10:45   ` Kassey Li (QUIC)
2022-07-20 17:02     ` Andrew Morton

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

all inboxes | Powered by JetHome®