projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vlog: Generate vlog-modules.def automatically.
[openvswitch]
/
lib
/
dpif.c
diff --git
a/lib/dpif.c
b/lib/dpif.c
index 30384196384444ac11ab6d853aec152bde248132..ea806dc1833f8d28d8149ef9b70b7e97ce6537f6 100644
(file)
--- a/
lib/dpif.c
+++ b/
lib/dpif.c
@@
-258,8
+258,10
@@
do_open(const char *name, const char *type, bool create, struct dpif **dpifp)
goto exit;
}
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) {
if (!error) {
+ assert(dpif->dpif_class == registered_class->dpif_class);
registered_class->refcount++;
}
registered_class->refcount++;
}