svn commit: r290201 - head/sys/dev/xen/netfront

Simon J. Gerraty sjg at FreeBSD.org
Fri Oct 30 17:12:16 UTC 2015


Author: sjg
Date: Fri Oct 30 17:12:15 2015
New Revision: 290201
URL: https://svnweb.freebsd.org/changeset/base/290201

Log:
  Do not FALLTHROUGH for SIOC{ADD,DEL}MULTI
  
  ifmedia_ioctl() returns EINVAL
  
  Differential Revision:	3897
  Submitted by:	aronen at juniper.net
  Reviewed by:	marcel

Modified:
  head/sys/dev/xen/netfront/netfront.c

Modified: head/sys/dev/xen/netfront/netfront.c
==============================================================================
--- head/sys/dev/xen/netfront/netfront.c	Fri Oct 30 17:05:52 2015	(r290200)
+++ head/sys/dev/xen/netfront/netfront.c	Fri Oct 30 17:12:15 2015	(r290201)
@@ -1663,7 +1663,7 @@ xn_ioctl(struct ifnet *ifp, u_long cmd, 
 			error = 0;
 		}
 #endif
-		/* FALLTHROUGH */
+		break;
 	case SIOCSIFMEDIA:
 	case SIOCGIFMEDIA:
 		error = ifmedia_ioctl(ifp, ifr, &sc->sc_media, cmd);


More information about the svn-src-head mailing list