Skip to content

Commit

Permalink
[PATCH] i810_audio: fix release_region misordering in error exit from…
Browse files Browse the repository at this point in the history
… i810_probe

Re-order release_region calls in i810_probe to properly unwind preceding
allocations.

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
  • Loading branch information
John W. Linville authored and Jeff Garzik committed Aug 23, 2005
1 parent f6fdd7d commit 7087e29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/oss/i810_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -3430,9 +3430,9 @@ static int __devinit i810_probe(struct pci_dev *pci_dev, const struct pci_device
release_mem_region(card->iobase_mmio_phys, 256);
}
out_pio:
release_region(card->iobase, 64);
out_region2:
release_region(card->ac97base, 256);
out_region2:
release_region(card->iobase, 64);
out_region1:
pci_free_consistent(pci_dev, sizeof(struct i810_channel)*NR_HW_CH,
card->channel, card->chandma);
Expand Down

0 comments on commit 7087e29

Please sign in to comment.