[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20100210091053.2104bc8e@nehalam>
Date: Wed, 10 Feb 2010 09:10:53 -0800
From: Stephen Hemminger <shemminger@...tta.com>
To: Rasesh Mody <rmody@...cade.com>
Cc: netdev@...r.kernel.org, adapter_linux_open_src_team@...cade.com
Subject: Re: Subject: [PATCH 1/6] bna: Brocade 10Gb Ethernet device driver
On Tue, 9 Feb 2010 22:29:15 -0800
Rasesh Mody <rmody@...cade.com> 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.
--
--
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