Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219675
b: refs/heads/master
c: beef969
h: refs/heads/master
i:
  219673: da29974
  219671: ec85eac
v: v3
  • Loading branch information
Kulikov Vasiliy authored and Greg Kroah-Hartman committed Aug 31, 2010
1 parent 409a53d commit 2cfcf98
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 036b00e0917a867a018c583aa86aa66affb9321c
refs/heads/master: beef9697244991c43673716447edd8a12b177b36
10 changes: 7 additions & 3 deletions trunk/drivers/staging/rtl8187se/r8180_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3547,6 +3547,7 @@ static int __devinit rtl8180_pci_probe(struct pci_dev *pdev,
struct net_device *dev = NULL;
struct r8180_priv *priv = NULL;
u8 unit = 0;
int ret = -ENODEV;

unsigned long pmem_start, pmem_len, pmem_flags;

Expand All @@ -3561,8 +3562,10 @@ static int __devinit rtl8180_pci_probe(struct pci_dev *pdev,
pci_set_dma_mask(pdev, 0xffffff00ULL);
pci_set_consistent_dma_mask(pdev, 0xffffff00ULL);
dev = alloc_ieee80211(sizeof(struct r8180_priv));
if (!dev)
return -ENOMEM;
if (!dev) {
ret = -ENOMEM;
goto fail_free;
}
priv = ieee80211_priv(dev);
priv->ieee80211 = netdev_priv(dev);

Expand Down Expand Up @@ -3641,11 +3644,12 @@ static int __devinit rtl8180_pci_probe(struct pci_dev *pdev,
free_ieee80211(dev);
}

fail_free:
pci_disable_device(pdev);

DMESG("wlan driver load failed\n");
pci_set_drvdata(pdev, NULL);
return -ENODEV;
return ret;
}

static void __devexit rtl8180_pci_remove(struct pci_dev *pdev)
Expand Down

0 comments on commit 2cfcf98

Please sign in to comment.