Fix a panic when destroying a lagg interface.

Differential Revision:	https://reviews.freebsd.org/D3883
This commit is contained in:
Hiroki Sato 2015-10-16 01:16:01 +00:00
parent cada39d8dd
commit b7a581eaa6

View File

@ -916,7 +916,8 @@ lagg_port_destroy(struct lagg_port *lp, int rundelport)
* iflladdr_event.
*/
sc->sc_primary = lp0;
lagg_port_lladdr(lp0, lladdr);
if (lp0 != NULL)
lagg_port_lladdr(lp0, lladdr);
}
/* Remove any pending lladdr changes from the queue */