Merge tag 'soc-dt-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
[linux-2.6-block.git] / block / blk-cgroup-fc-appid.c
index 842e5e1c0f3cb97dafe6810dfbc527a30edb78ff..3ec21333f393b79a6650ff0f214f217fe666bed5 100644 (file)
@@ -34,7 +34,7 @@ int blkcg_set_fc_appid(char *app_id, u64 cgrp_id, size_t app_id_len)
         * the vmid from the fabric.
         * Adding the overhead of a lock is not necessary.
         */
-       strlcpy(blkcg->fc_app_id, app_id, app_id_len);
+       strscpy(blkcg->fc_app_id, app_id, app_id_len);
        css_put(css);
 out_cgrp_put:
        cgroup_put(cgrp);