[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20071024064640.3f6dcc7d@shemminger-laptop>
Date: Wed, 24 Oct 2007 06:46:40 -0700
From: Stephen Hemminger <shemminger@...ux-foundation.org>
To: Jeff Garzik <jeff@...zik.org>
Cc: David Miller <davem@...emloft.net>, netdev@...r.kernel.org
Subject: Re: [PATCH] NET: Validate device addr prior to interface-up
> diff --git a/net/ethernet/eth.c b/net/ethernet/eth.c
> index ed8a3d4..5471cd2 100644
> --- a/net/ethernet/eth.c
> +++ b/net/ethernet/eth.c
> @@ -298,6 +298,14 @@ static int eth_change_mtu(struct net_device *dev, int new_mtu)
> return 0;
> }
>
> +static int eth_validate_addr(struct net_device *dev)
> +{
> + if (!is_valid_ether_addr(dev->dev_addr))
> + return -EINVAL;
> +
> + return 0;
> +}
Shouldn't this be "const struct net_device *dev"
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists