[Bridge] Problem in changed VLAN code can cause systems to hang.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Stephen Hemminger wrote:
> Thanks Tommy, the vlan MII ioctl pass through was passing the wrong device.
> 
> Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxx>
> --
> diff -Nru a/net/8021q/vlan_dev.c b/net/8021q/vlan_dev.c
> --- a/net/8021q/vlan_dev.c	2004-09-10 06:12:16 -07:00
> +++ b/net/8021q/vlan_dev.c	2004-09-10 06:12:16 -07:00
> @@ -772,7 +772,7 @@
>  	case SIOCGMIIREG:
>  	case SIOCSMIIREG:
>  		if (real_dev->do_ioctl && netif_device_present(real_dev)) 
> -			err = real_dev->do_ioctl(dev, &ifrr, cmd);
> +			err = real_dev->do_ioctl(real_dev, &ifrr, cmd);
>  		break;
>  
>  	case SIOCETHTOOL:
> 

I tested the patch and it fixes the problem as expected.

Mark.

-- 



[Index of Archives]     [Netdev]     [AoE Tools]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux