HomeFreeBSD

Fix possible NULL pointer dereference.

Description

Fix possible NULL pointer dereference.

lagg(4) replaces if_output method of its child interfaces and expects
that this method can be called only by child interfaces. But it is
possible that lagg_port_output() could be called by children of child
interfaces. In this case ifnet's if_lagg field is NULL. Add check that
lp is not NULL.

Obtained from: Yandex LLC
MFC after: 1 week
Sponsored by: Yandex LLC

Details

Provenance
aeAuthored on
Parents
rS367593: vmm: Make pmap_invalidate_ept() wait synchronously for guest exits
Branches
Unknown
Tags
Unknown