--- zzzz-none-000/linux-4.9.279/kernel/relay.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-arm-6591-750/linux-4.9.279/kernel/relay.c 2023-02-08 10:58:16.000000000 +0000 @@ -12,6 +12,11 @@ * * This file is released under the GPL. */ +/* + * Includes MaxLinear's changes dated: 2021. + * Changed portions - Copyright 2021, MaxLinear, Inc. + */ + #include #include #include @@ -422,7 +427,7 @@ tmpname = kzalloc(NAME_MAX + 1, GFP_KERNEL); if (!tmpname) return NULL; - snprintf(tmpname, NAME_MAX, "%s%d", chan->base_filename, cpu); + snprintf(tmpname, NAME_MAX + 1, "%s%d", chan->base_filename, cpu); /* Create file in fs */ dentry = chan->cb->create_buf_file(tmpname, chan->parent,