]> git.hungrycats.org Git - linux/commitdiff
[wireless prism54] add two final missing bits
authorLuis R. Rodriguez <mcgrof@ruslug.rutgers.edu>
Thu, 18 Mar 2004 12:15:27 +0000 (07:15 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 18 Mar 2004 12:15:27 +0000 (07:15 -0500)
One a fairly important one, ensuring an skb slot is noted to be NULL.

drivers/net/wireless/prism54/islpci_dev.c

index 4a246e7f725dcd897205c212411ec394cc55181b..e1545f64642793f50bc8fb33c6bc027367531563 100644 (file)
@@ -577,6 +577,7 @@ islpci_alloc_memory(islpci_private *priv)
                if (!(skb = dev_alloc_skb(MAX_FRAGMENT_SIZE_RX + 2))) {
                        /* error allocating an sk_buff structure elements */
                        printk(KERN_ERR "Error allocating skb.\n");
+                       skb = NULL;
                        goto out_free;
                }
                /* add the new allocated sk_buff to the buffer array */
@@ -711,7 +712,7 @@ islpci_setup(struct pci_dev *pdev)
 #endif
 
        /* allocate a private device structure to the network device  */
-       priv = ndev->priv;
+       priv = netdev_priv(ndev);
        priv->ndev = ndev;
        priv->pdev = pdev;