Merge tag 'for-linus-5.10-rc1-part2' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / drivers / md / dm-ioctl.c
index 056d891..cd0478d 100644 (file)
@@ -1168,7 +1168,7 @@ static void retrieve_status(struct dm_table *table,
                spec->sector_start = ti->begin;
                spec->length = ti->len;
                strncpy(spec->target_type, ti->type->name,
-                       sizeof(spec->target_type));
+                       sizeof(spec->target_type) - 1);
 
                outptr += sizeof(struct dm_target_spec);
                remaining = len - (outptr - outbuf);
@@ -2044,7 +2044,7 @@ out:
 
        return r;
 }
-
+EXPORT_SYMBOL_GPL(dm_copy_name_and_uuid);
 
 /**
  * dm_early_create - create a mapped device in early boot.