--- a/mm/dmapool.c~mm-dmapool-switch-from-strlcpy-to-strscpy +++ a/mm/dmapool.c @@ -157,7 +157,7 @@ struct dma_pool *dma_pool_create(const c if (!retval) return retval; - strlcpy(retval->name, name, sizeof(retval->name)); + strscpy(retval->name, name, sizeof(retval->name)); retval->dev = dev;