summaryrefslogtreecommitdiffstats
path: root/drivers/w1/masters
diff options
context:
space:
mode:
authorAmol Lad <amol@verismonetworks.com>2006-10-05 12:26:02 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2006-11-16 23:30:26 +0100
commite45413eb708c1cf21082764457692c8eeac0ca97 (patch)
tree7531fac05a3141bb8fe6888a8e3b269e2d51d358 /drivers/w1/masters
parentMerge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm (diff)
downloadlinux-e45413eb708c1cf21082764457692c8eeac0ca97.tar.xz
linux-e45413eb708c1cf21082764457692c8eeac0ca97.zip
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 <amol@verismonetworks.com> Signed-off-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/w1/masters')
-rw-r--r--drivers/w1/masters/matrox_w1.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/w1/masters/matrox_w1.c b/drivers/w1/masters/matrox_w1.c
index 2788b8ca9bb1..6f9d880ab2e9 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;