Commit deefad78 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by Jeff Garzik

[wireless prism54] add two final missing bits

One a fairly important one, ensuring an skb slot is noted to be NULL.
parent 32c0de69
...@@ -577,6 +577,7 @@ islpci_alloc_memory(islpci_private *priv) ...@@ -577,6 +577,7 @@ islpci_alloc_memory(islpci_private *priv)
if (!(skb = dev_alloc_skb(MAX_FRAGMENT_SIZE_RX + 2))) { if (!(skb = dev_alloc_skb(MAX_FRAGMENT_SIZE_RX + 2))) {
/* error allocating an sk_buff structure elements */ /* error allocating an sk_buff structure elements */
printk(KERN_ERR "Error allocating skb.\n"); printk(KERN_ERR "Error allocating skb.\n");
skb = NULL;
goto out_free; goto out_free;
} }
/* add the new allocated sk_buff to the buffer array */ /* add the new allocated sk_buff to the buffer array */
...@@ -711,7 +712,7 @@ islpci_setup(struct pci_dev *pdev) ...@@ -711,7 +712,7 @@ islpci_setup(struct pci_dev *pdev)
#endif #endif
/* allocate a private device structure to the network device */ /* allocate a private device structure to the network device */
priv = ndev->priv; priv = netdev_priv(ndev);
priv->ndev = ndev; priv->ndev = ndev;
priv->pdev = pdev; priv->pdev = pdev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment