Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8729bdea authored by Johannes Thumshirn's avatar Johannes Thumshirn Committed by Dan Williams
Browse files

libnvdimm: initialize struct blk_integrity with 0



Initialize struct blk_integrity with 0 as blk_integrity_register() takes the
then unitialized struct blk_integrity::flags and ORs it to the resulting block
integrity structure.

Signed-off-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent ee8520fe
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -601,7 +601,8 @@ int nd_integrity_init(struct gendisk *disk, unsigned long meta_size)
	if (meta_size == 0)
		return 0;

	bi.profile = NULL;
	memset(&bi, 0, sizeof(bi));

	bi.tuple_size = meta_size;
	bi.tag_size = meta_size;