From: Amol Lad Date: Thu, 5 Oct 2006 10:26:02 +0000 (+0400) Subject: W1: ioremap balanced with iounmap X-Git-Tag: v3.12-rc1~31920^2~20^2~81^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e45413eb708c1cf21082764457692c8eeac0ca97;p=kernel%2Fkernel-generic.git W1: ioremap balanced with iounmap ioremap must be balanced with iounmap in error path. Please consider for 2.6.19. Signed-off-by: Amol Lad Signed-off-by: Evgeniy Polyakov Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/w1/masters/matrox_w1.c b/drivers/w1/masters/matrox_w1.c index 2788b8c..6f9d880 100644 --- a/drivers/w1/masters/matrox_w1.c +++ b/drivers/w1/masters/matrox_w1.c @@ -215,6 +215,8 @@ static int __devinit matrox_w1_probe(struct pci_dev *pdev, const struct pci_devi return 0; err_out_free_device: + if (dev->virt_addr) + iounmap(dev->virt_addr); kfree(dev); return err;