svn commit: r289400 - head/sys/net

Hiroki Sato hrs at FreeBSD.org
Fri Oct 16 01:16:03 UTC 2015


Author: hrs
Date: Fri Oct 16 01:16:01 2015
New Revision: 289400
URL: https://svnweb.freebsd.org/changeset/base/289400

Log:
  Fix a panic when destroying a lagg interface.
  
  Differential Revision:	https://reviews.freebsd.org/D3883

Modified:
  head/sys/net/if_lagg.c

Modified: head/sys/net/if_lagg.c
==============================================================================
--- head/sys/net/if_lagg.c	Fri Oct 16 00:38:05 2015	(r289399)
+++ head/sys/net/if_lagg.c	Fri Oct 16 01:16:01 2015	(r289400)
@@ -916,7 +916,8 @@ lagg_port_destroy(struct lagg_port *lp, 
 		 * 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 */


More information about the svn-src-head mailing list