Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 292889
b: refs/heads/master
c: 55e14e7
h: refs/heads/master
i:
  292887: 1967a6c
v: v3
  • Loading branch information
Stephen M. Cameron authored and James Bottomley committed Feb 19, 2012
1 parent 0c153f2 commit 5c423bd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 26b937b2a349e9e6b294703232af264af7e277c4
refs/heads/master: 55e14e764df5e24bedf93220f1da167af8300c2f
9 changes: 9 additions & 0 deletions trunk/drivers/scsi/hpsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -4482,6 +4482,14 @@ static void hpsa_shutdown(struct pci_dev *pdev)
#endif /* CONFIG_PCI_MSI */
}

static void __devexit hpsa_free_device_info(struct ctlr_info *h)
{
int i;

for (i = 0; i < h->ndevices; i++)
kfree(h->dev[i]);
}

static void __devexit hpsa_remove_one(struct pci_dev *pdev)
{
struct ctlr_info *h;
Expand All @@ -4497,6 +4505,7 @@ static void __devexit hpsa_remove_one(struct pci_dev *pdev)
iounmap(h->vaddr);
iounmap(h->transtable);
iounmap(h->cfgtable);
hpsa_free_device_info(h);
hpsa_free_sg_chain_blocks(h);
pci_free_consistent(h->pdev,
h->nr_cmds * sizeof(struct CommandList),
Expand Down

0 comments on commit 5c423bd

Please sign in to comment.