vlog: Generate vlog-modules.def automatically.
[openvswitch] / lib / dpif.c
index 30384196384444ac11ab6d853aec152bde248132..ea806dc1833f8d28d8149ef9b70b7e97ce6537f6 100644 (file)
@@ -258,8 +258,10 @@ do_open(const char *name, const char *type, bool create, struct dpif **dpifp)
         goto exit;
     }
 
-    error = registered_class->dpif_class->open(name, type, create, &dpif);
+    error = registered_class->dpif_class->open(registered_class->dpif_class,
+                                               name, create, &dpif);
     if (!error) {
+        assert(dpif->dpif_class == registered_class->dpif_class);
         registered_class->refcount++;
     }