Subject: Re: Subject: [PATCH 1/6] bna: Brocade 10Gb Ethernet device driver

From: Stephen Hemminger <[email-masked]>
Date: Wed, 10 Feb 2010 09:10:53 -0800

On Tue, 9 Feb 2010 22:29:15 -0800
Rasesh Mody <[email-masked]> wrote:

> +	netdev = alloc_etherdev(sizeof(struct bnad));
> +	if (!netdev) {
> +		dev_err(&pdev->dev, "alloc_etherdev failed\n");
> +		err = -ENOMEM;
> +		goto release_regions;
> +	}
> +	SET_NETDEV_DEV(netdev, &pdev->dev);
> +	pci_set_drvdata(pdev, netdev);
> +
> +	bnad = netdev_priv(netdev);
> +
> +	memset(bnad, 0, sizeof(struct bnad));

The private area provided by alloc_etherdev is already 
guaranteed to be zerod.

--