kern/162028: misplaced #endif in ixgbe.c
Hooman Fazaeli
hoomanfazaeli at gmail.com
Wed Oct 26 11:00:21 UTC 2011
>Number: 162028
>Category: kern
>Synopsis: misplaced #endif in ixgbe.c
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Oct 26 11:00:20 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Hooman Fazaeli
>Release: 7.4-RELEASE
>Organization:
Sepehr S. T. Co. Ltd.
>Environment:
FreeBSD HP04 7.4-RELEASE FreeBSD 7.4-RELEASE #1: Thu May 12 02:24:45 IRDT 2011 admin@:/usr/src/sys/i386/compile/SERVER74-001 i386
>Description:
A misplaced #endif in ixgbe_ioctl() causes interface MTU to become
zero when INET and INET6 are undefined.
>How-To-Repeat:
See sys/dev/ixgbe/ixgbe.c v 1.53
function ixgbe_ioctl.
>Fix:
Patch attached with submission follows:
--- ixgbe.c.orig 2011-10-17 20:37:17.000000000 +0330
+++ ixgbe.c 2011-10-17 20:38:40.000000000 +0330
@@ -898,8 +898,8 @@
arp_ifinit(ifp, ifa);
} else
error = ether_ioctl(ifp, command, data);
- break;
#endif
+ break;
case SIOCSIFMTU:
IOCTL_DEBUGOUT("ioctl: SIOCSIFMTU (Set Interface MTU)");
if (ifr->ifr_mtu > IXGBE_MAX_FRAME_SIZE - ETHER_HDR_LEN) {
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list