Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
binding: Do not clear container lbinding->pb when parent is deleted.
When a parent Port_Binding is deleted we shouldn't clear the children's 'pb' field. Container port bindings have their own Port_Binding SB record so the child_lbinding->pb field should be cleared only when their corresponding SB record is deleted. Whithout this fix when a parent Port_Binding "remove" followed by "add" operations are received in the same iteration in ovn-controller, consider_container_lport() can be called with "pb == NULL" causing a crash. Fixes: 354bdba ("ovn-controller: I-P for SB port binding and OVS interface in runtime_data.") Signed-off-by: Dumitru Ceara <dceara@redhat.com> Signed-off-by: Numan Siddique <numans@ovn.org> (cherry-picked from master commit d3245f6)
- Loading branch information