Browse Source

drbd: Initialize all members of sync_conf to their defaults [Bugz 315]

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
Philipp Reisner 15 years ago
parent
commit
e756414f7d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      drivers/block/drbd/drbd_main.c

+ 2 - 1
drivers/block/drbd/drbd_main.c

@@ -2689,7 +2689,8 @@ static void drbd_set_defaults(struct drbd_conf *mdev)
 		/* .verify_alg = */	{}, 0,
 		/* .cpu_mask = */	{}, 0,
 		/* .csums_alg = */	{}, 0,
-		/* .use_rle = */	0
+		/* .use_rle = */	0,
+		/* .on_no_data = */	DRBD_ON_NO_DATA_DEF
 	};
 
 	/* Have to use that way, because the layout differs between