Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24496
b: refs/heads/master
c: 07e0e93
h: refs/heads/master
v: v3
  • Loading branch information
Jesper Juhl authored and Linus Torvalds committed Mar 28, 2006
1 parent 5fa4122 commit e858352
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 457d3d432bede99ed04d3bdeb5efb238a3627e8f
refs/heads/master: 07e0e93d9a3cdbe3cad450e0d0a2937585dffc55
10 changes: 2 additions & 8 deletions trunk/sound/oss/maestro3.c
Original file line number Diff line number Diff line change
Expand Up @@ -2582,15 +2582,9 @@ static int alloc_dsp_suspendmem(struct m3_card *card)

return 0;
}
static void free_dsp_suspendmem(struct m3_card *card)
{
if(card->suspend_mem)
vfree(card->suspend_mem);
}

#else
#define alloc_dsp_suspendmem(args...) 0
#define free_dsp_suspendmem(args...)
#endif

/*
Expand Down Expand Up @@ -2717,7 +2711,7 @@ static int __devinit m3_probe(struct pci_dev *pci_dev, const struct pci_device_i
if(ret) {
if(card->iobase)
release_region(pci_resource_start(pci_dev, 0), pci_resource_len(pci_dev, 0));
free_dsp_suspendmem(card);
vfree(card->suspend_mem);
if(card->ac97) {
unregister_sound_mixer(card->ac97->dev_mixer);
kfree(card->ac97);
Expand Down Expand Up @@ -2760,7 +2754,7 @@ static void m3_remove(struct pci_dev *pci_dev)
}

release_region(card->iobase, 256);
free_dsp_suspendmem(card);
vfree(card->suspend_mem);
kfree(card);
}
devs = NULL;
Expand Down

0 comments on commit e858352

Please sign in to comment.