]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - mm/zswap.c
Merge tag 'thermal-v5.13-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/therma...
[mirror_ubuntu-jammy-kernel.git] / mm / zswap.c
index 578d9f25692003ab088098880dc52f44fdd540f3..20763267a219e25828c5b2733d1819c7fc3c81e2 100644 (file)
@@ -614,7 +614,7 @@ static struct zswap_pool *zswap_pool_create(char *type, char *compressor)
        }
        pr_debug("using %s zpool\n", zpool_get_type(pool->zpool));
 
-       strlcpy(pool->tfm_name, compressor, sizeof(pool->tfm_name));
+       strscpy(pool->tfm_name, compressor, sizeof(pool->tfm_name));
 
        pool->acomp_ctx = alloc_percpu(*pool->acomp_ctx);
        if (!pool->acomp_ctx) {