|
@@ -1831,11 +1831,13 @@ static int __devinit ns83820_init_one(struct pci_dev *pci_dev, const struct pci_
|
|
|
|
|
|
ndev = alloc_etherdev(sizeof(struct ns83820));
|
|
ndev = alloc_etherdev(sizeof(struct ns83820));
|
|
dev = PRIV(ndev);
|
|
dev = PRIV(ndev);
|
|
- dev->ndev = ndev;
|
|
|
|
|
|
+
|
|
err = -ENOMEM;
|
|
err = -ENOMEM;
|
|
if (!dev)
|
|
if (!dev)
|
|
goto out;
|
|
goto out;
|
|
|
|
|
|
|
|
+ dev->ndev = ndev;
|
|
|
|
+
|
|
spin_lock_init(&dev->rx_info.lock);
|
|
spin_lock_init(&dev->rx_info.lock);
|
|
spin_lock_init(&dev->tx_lock);
|
|
spin_lock_init(&dev->tx_lock);
|
|
spin_lock_init(&dev->misc_lock);
|
|
spin_lock_init(&dev->misc_lock);
|