aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKassey Li <[email protected]>2022-07-19 17:15:54 +0800
committerakpm <[email protected]>2022-07-29 18:07:16 -0700
commit198729c9627a754b26aebdc8a26e559424c8f06c (patch)
tree587ad9be4d1016cb64f7ed05e9e399c3b90d8bc1
parent3d5367a0426da61c7cb616cc85b6239467e261dd (diff)
mm/cma_debug.c: align the name buffer length as struct cma
Avoids truncating the debugfs output to 16 chars. Potentially alters the userspace output, but this is a debugfs interface and there are no stability guarantees. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Kassey Li <[email protected]> Cc: Sasha Levin <[email protected]> Cc: Joonsoo Kim <[email protected]> Cc: Minchan Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
-rw-r--r--mm/cma_debug.c2
1 files changed, 1 insertions, 1 deletions
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);