Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 141078
b: refs/heads/master
c: 1025744
h: refs/heads/master
v: v3
  • Loading branch information
Lior Dotan authored and Greg Kroah-Hartman committed Apr 3, 2009
1 parent 1f490b1 commit 308baaa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 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: a390c47939b0d418fc2c4cf1f360795949228de5
refs/heads/master: 1025744a6c30d58e232bac43396db18cc805ab98
17 changes: 9 additions & 8 deletions trunk/drivers/staging/slicoss/slicoss.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ static int __devinit slic_entry_probe(struct pci_dev *pcidev,
{
static int cards_found;
static int did_version;
int err;
int err = -ENODEV;
struct net_device *netdev;
struct adapter *adapter;
void __iomem *memmapped_ioaddr = NULL;
Expand Down Expand Up @@ -369,7 +369,7 @@ static int __devinit slic_entry_probe(struct pci_dev *pcidev,
DBG_MSG
("No usable DMA configuration, aborting err[%x]\n",
err);
return err;
goto err_out_disable_pci;
}
DBG_MSG("pci_set_dma_mask(DMA_32BIT_MASK) successful\n");
}
Expand All @@ -379,7 +379,7 @@ static int __devinit slic_entry_probe(struct pci_dev *pcidev,
err = pci_request_regions(pcidev, DRV_NAME);
if (err) {
DBG_MSG("pci_request_regions FAILED err[%x]\n", err);
return err;
goto err_out_disable_pci;
}

DBG_MSG("call pci_set_master\n");
Expand Down Expand Up @@ -413,7 +413,7 @@ static int __devinit slic_entry_probe(struct pci_dev *pcidev,
if (!memmapped_ioaddr) {
DBG_ERROR("%s cannot remap MMIO region %lx @ %lx\n",
__func__, mmio_len, mmio_start);
goto err_out_free_mmio_region;
goto err_out_free_netdev;
}

DBG_MSG
Expand Down Expand Up @@ -497,16 +497,17 @@ static int __devinit slic_entry_probe(struct pci_dev *pcidev,

err_out_unmap:
iounmap(memmapped_ioaddr);

err_out_free_mmio_region:
release_mem_region(mmio_start, mmio_len);

err_out_free_netdev:
free_netdev(netdev);
err_out_exit_slic_probe:
pci_release_regions(pcidev);
DBG_ERROR("%s EXIT jiffies[%lx] cpu %d\n", __func__, jiffies,
smp_processor_id());

return -ENODEV;
err_out_disable_pci:
pci_disable_device(pcidev);
return err;
}

static int slic_entry_open(struct net_device *dev)
Expand Down

0 comments on commit 308baaa

Please sign in to comment.