--- zzzz-none-000/linux-5.15.111/kernel/relay.c 2023-05-11 14:00:40.000000000 +0000 +++ puma7-arm-6670-761/linux-5.15.111/kernel/relay.c 2024-02-07 09:28:08.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 @@ -357,7 +362,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,