On Fri, 11 Aug 2017 19:47:57 +0000 <bryan.whiteh...@microchip.com> wrote:
> + > + netdev = alloc_etherdev(sizeof(struct lan743x_adapter)); > + if (!netdev) { > + NETIF_ERROR(adapter, probe, adapter->netdev, > + "alloc_etherdev returned NULL"); > + ret = -ENOMEM; > + goto clean_up; > + } > + > + strncpy(netdev->name, pci_name(pdev), sizeof(netdev->name) - 1); > + SET_NETDEV_DEV(netdev, &pdev->dev); > + pci_set_drvdata(pdev, netdev); > + adapter = netdev_priv(netdev); > + if (!adapter) { > + NETIF_ERROR(adapter, probe, adapter->netdev, > + "netdev_priv returned NULL"); > + ret = -ENOMEM; > + goto clean_up; > + } > + memset(adapter, 0, sizeof(struct lan743x_adapter)); netdev_priv area is already zerod