[ovs-git] [ovn-org/ovn] c166fd: binding: Fix potential NULL dereference of lbinding.

Dumitru Ceara noreply at github.com
Sat Mar 6 10:18:22 UTC 2021

  Branch: refs/heads/branch-20.06
  Home:   https://github.com/ovn-org/ovn
  Commit: c166fdfa44bd1e438ca599c3112c5dba6e65d81e
  Author: Dumitru Ceara <dceara at redhat.com>
  Date:   2021-03-06 (Sat, 06 Mar 2021)

  Changed paths:
    M controller/binding.c

  Log Message:
  binding: Fix potential NULL dereference of lbinding.

There is a valid code path that can lead to 'lbinding' being NULL in
handle_deleted_vif_lport().  Make sure we check for it.

Found by code inspection.

Fixes: 68cf9fdceba8 ("binding: Fix container port removal from local bindings.")
Signed-off-by: Dumitru Ceara <dceara at redhat.com>
Signed-off-by: Numan Siddique <numans at ovn.org>

(cherry-picked from master commit 80a9a8e834829a80af2ee329fc69a1314fb5079b)

More information about the git mailing list