]> git.proxmox.com Git - ovs.git/commit
ofproto-dpif-upcall: Fix null pointer dereference on exit.
authorBen Pfaff <blp@ovn.org>
Fri, 27 Oct 2017 15:40:23 +0000 (08:40 -0700)
committerBen Pfaff <blp@ovn.org>
Thu, 2 Nov 2017 18:13:24 +0000 (11:13 -0700)
commitd2cb0218d02646f740788e4b01587782fd8ca98f
tree2391eef068a5df8e345f78cef038e01951ba21e5
parentc19105a09304d8af8cde41f79075f5bdc005bf7d
ofproto-dpif-upcall: Fix null pointer dereference on exit.

When revalidation occurs at the same time that a bridge is being removed
or ovs-vswitchd is exiting, xlate_lookup_ofproto() races with deletion of
the ofproto.  This caused a null pointer dereference if revalidation lost
the race.  This commit fixes the problem.

Reported-by: Jakub Sitnicki <jkbs@redhat.com>
Tested-by: Jakub Sitnicki <jkbs@redhat.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
ofproto/ofproto-dpif-upcall.c