From: Joe Thornber Date: Tue, 24 Jul 2012 23:25:27 +0000 (+1000) Subject: Zero the unused uuid when initialising the metadata superblock. X-Git-Tag: next-20120725~49^2~15 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=da4e4cd5a50f18a100ff2fdbcbfbd7dde8a50154;p=karo-tx-linux.git Zero the unused uuid when initialising the metadata superblock. Signed-off-by: Joe Thornber Signed-off-by: Mike Snitzer Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-thin-metadata.c b/drivers/md/dm-thin-metadata.c index 934b3fc7bfc9..9f7c1e01dda2 100644 --- a/drivers/md/dm-thin-metadata.c +++ b/drivers/md/dm-thin-metadata.c @@ -455,6 +455,7 @@ static int __write_initial_superblock(struct dm_pool_metadata *pmd) disk_super = dm_block_data(sblock); disk_super->flags = 0; + memset(disk_super->uuid, 0, sizeof(disk_super->uuid)); disk_super->magic = cpu_to_le64(THIN_SUPERBLOCK_MAGIC); disk_super->version = cpu_to_le32(THIN_VERSION); disk_super->time = 0;