From: John W. Linville Date: Thu, 4 Aug 2005 18:40:25 +0000 (-0400) Subject: [PATCH] i810_audio: fix release_region misordering in error exit from i810_probe X-Git-Tag: v2.6.13-rc7~3^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=7087e295543d3f6e161530e07982fd979e2d9efc;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Jeff Garzik --- diff --git a/sound/oss/i810_audio.c b/sound/oss/i810_audio.c index 7e9f667cf7a..b9a640fe48b 100644 --- a/sound/oss/i810_audio.c +++ b/sound/oss/i810_audio.c @@ -3430,9 +3430,9 @@ out_iospace: 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);