X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fdpif.c;h=ea806dc1833f8d28d8149ef9b70b7e97ce6537f6;hb=611d30ceb68c8542d11acee8248f66f9485505e9;hp=30384196384444ac11ab6d853aec152bde248132;hpb=d2d8fbebb86eb682fc9507a884e80ff5e6086f03;p=openvswitch diff --git a/lib/dpif.c b/lib/dpif.c index 30384196..ea806dc1 100644 --- 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; } - 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++; }