drbd: Initialize all members of sync_conf to their defaults [Bugz 315]
authorPhilipp Reisner <philipp.reisner@linbit.com>
Tue, 29 Jun 2010 15:35:34 +0000 (17:35 +0200)
committerPhilipp Reisner <philipp.reisner@linbit.com>
Thu, 14 Oct 2010 13:12:07 +0000 (15:12 +0200)
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
drivers/block/drbd/drbd_main.c

index c6658f5a5c1cf274c38616d3bfaa293fb03be49d..410d3d4f361e3d0814d236c44495e25c65cf88d3 100644 (file)
@@ -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