ofproto-dpif: Destroy facets on ofproto removal.
authorEthan Jackson <ethan@nicira.com>
Wed, 4 Sep 2013 16:27:31 +0000 (09:27 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 4 Sep 2013 19:58:50 +0000 (12:58 -0700)
commitd6aa7ad6250d17885666c6505d567d06bfc093b2
tree4ce71ccada16217162ac18ce24d884e364fb5bf2
parent95e22d6798a07f01ad445263f44d6743b13bc2ce
ofproto-dpif: Destroy facets on ofproto removal.

Facets maintain a pointer to their owning ofproto-dpif, and therefore
when an ofproto-dpif is destroyed all of their child facets should be
destroyed along with it.  If they aren't, it's possible a subfacet
looked up in the dpif-backer could access it's parent facet and
therefore a defunct parent ofproto causing a segmentation fault.

Bug #19421.
Bug #19423.
Diagnosed-by: Ben Pfaff <blp@nicira.com>
Signed-off-by: Ethan Jackson <ethan@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
ofproto/ofproto-dpif.c