Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7087e295 authored by John W. Linville's avatar John W. Linville Committed by Jeff Garzik
Browse files

[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: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent f6fdd7d9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);