From: Al Viro Date: Mon, 25 Sep 2006 01:54:46 +0000 (+0100) Subject: [PATCH] wrong thing iounmapped (qla3xxx) X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=855fc73bf81e8f99606d6f5914c5b7c3b079d718;p=linux-beck.git [PATCH] wrong thing iounmapped (qla3xxx) ql3xxx_probe() does ioremap and stores result in ->mem_map_registers. On failure exit it does iounmap() of the same thing. OTOH, ql3xxx_remove() does iounmap() of ->mmap_virt_base which is (a) never assigned and (b) never used other than in that iounmap() call. Signed-off-by: Al Viro Signed-off-by: Linus Torvalds --- diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c index c184cd80a9fc..157471846349 100644 --- a/drivers/net/qla3xxx.c +++ b/drivers/net/qla3xxx.c @@ -3508,7 +3508,7 @@ static void __devexit ql3xxx_remove(struct pci_dev *pdev) qdev->workqueue = NULL; } - iounmap(qdev->mmap_virt_base); + iounmap(qdev->mem_map_registers); pci_release_regions(pdev); pci_set_drvdata(pdev, NULL); free_netdev(ndev);