]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - lib/kobject.c
lib/scatterlist: Introduce sgl_alloc() and sgl_free()
[mirror_ubuntu-bionic-kernel.git] / lib / kobject.c
index 65edcc8334319c9dbe5aadd7f1c080011008b393..7c41d62e11383e538649b5d3ad7a2720cfd4561a 100644 (file)
@@ -146,7 +146,7 @@ static void fill_kobj_path(struct kobject *kobj, char *path, int length)
                int cur = strlen(kobject_name(parent));
                /* back up enough to print this name with '/' */
                length -= cur;
-               strncpy(path + length, kobject_name(parent), cur);
+               memcpy(path + length, kobject_name(parent), cur);
                *(path + --length) = '/';
        }