From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id AAE0EDE27F for ; Wed, 7 Jan 2009 11:51:47 +1100 (EST) Subject: Re: [PATCH] [POWERPC] pasemi: ioremap/iounmap balance and failure handling From: Benjamin Herrenschmidt To: Roel Kluin In-Reply-To: <49478879.2030409@gmail.com> References: <4943E6B5.6010501@gmail.com> <20081213211335.GC17331@lixom.net> <49478879.2030409@gmail.com> Content-Type: text/plain Date: Wed, 07 Jan 2009 11:50:55 +1100 Message-Id: <1231289455.14860.46.camel@pasglop> Mime-Version: 1.0 Cc: Olof Johansson , linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > + > iob_regs = map_onedev(iob_pdev, 0); > + if (iob_regs == NULL) > + printk(KERN_WARNING "pasemi_dma_init: Can't ioremap I/O Bridge registers\n"); > > dma_pdev = pci_get_device(PCI_VENDOR_ID_PASEMI, 0xa007, NULL); > if (!dma_pdev) { > BUG(); > printk(KERN_WARNING "Can't find DMA controller\n"); > err = -ENODEV; > - goto out; > + goto out_unmap; > } None of that will be reached due to the previous BUG :-) Cheers, Ben.