[ovs-git] [openvswitch/ovs] 82bde5: ofproto: Don't use connmgr after destruction.

GitHub noreply at github.com
Thu Sep 15 21:44:10 UTC 2016


  Branch: refs/heads/branch-2.6
  Home:   https://github.com/openvswitch/ovs
  Commit: 82bde5b5c8dbd3908bc092f65ba95b833ce2686c
      https://github.com/openvswitch/ovs/commit/82bde5b5c8dbd3908bc092f65ba95b833ce2686c
  Author: Jarno Rajahalme <jarno at ovn.org>
  Date:   2016-09-15 (Thu, 15 Sep 2016)

  Changed paths:
    M ofproto/connmgr.c
    M ofproto/connmgr.h
    M ofproto/fail-open.c
    M ofproto/fail-open.h
    M ofproto/in-band.c
    M ofproto/ofproto-provider.h
    M ofproto/ofproto.c
    M ofproto/ofproto.h

  Log Message:
  -----------
  ofproto: Don't use connmgr after destruction.

Set ofproto's connmgr pointer to NULL after the connmgr has been
destructed, and check for NULL when sending a flow removed
notification.

Verified by sending the flow removed message unconditionally and
observing numerous core dumps in the test suite.

Found by inspection.

Fixes: f695ebfae5 ("ofproto: Postpone sending flow removed messages.")
Signed-off-by: Jarno Rajahalme <jarno at ovn.org>
Acked-by: Ben Pfaff <blp at ovn.org>




More information about the git mailing list