[PATCH] i810_audio: fix release_region misordering in error exit from 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>
This commit is contained in:
committed by
Jeff Garzik
parent
f6fdd7d9c2
commit
7087e29554
@@ -3430,9 +3430,9 @@ out_iospace:
|
|||||||
release_mem_region(card->iobase_mmio_phys, 256);
|
release_mem_region(card->iobase_mmio_phys, 256);
|
||||||
}
|
}
|
||||||
out_pio:
|
out_pio:
|
||||||
release_region(card->iobase, 64);
|
|
||||||
out_region2:
|
|
||||||
release_region(card->ac97base, 256);
|
release_region(card->ac97base, 256);
|
||||||
|
out_region2:
|
||||||
|
release_region(card->iobase, 64);
|
||||||
out_region1:
|
out_region1:
|
||||||
pci_free_consistent(pci_dev, sizeof(struct i810_channel)*NR_HW_CH,
|
pci_free_consistent(pci_dev, sizeof(struct i810_channel)*NR_HW_CH,
|
||||||
card->channel, card->chandma);
|
card->channel, card->chandma);
|
||||||
|
Reference in New Issue
Block a user