Skip to content

Commit 198729c

Browse files
Kassey Liakpm00
authored andcommitted
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/20220719091554.27864-1-quic_yingangl@quicinc.com Signed-off-by: Kassey Li <quic_yingangl@quicinc.com> Cc: Sasha Levin <sashal@kernel.org> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Minchan Kim <minchan@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 3d5367a commit 198729c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

mm/cma_debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ DEFINE_DEBUGFS_ATTRIBUTE(cma_alloc_fops, NULL, cma_alloc_write, "%llu\n");
163163
static void cma_debugfs_add_one(struct cma *cma, struct dentry *root_dentry)
164164
{
165165
struct dentry *tmp;
166-
char name[16];
166+
char name[CMA_MAX_NAME];
167167

168168
scnprintf(name, sizeof(name), "cma-%s", cma->name);
169169

0 commit comments

Comments
 (0)