Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e45413eb authored by Amol Lad's avatar Amol Lad Committed by Greg Kroah-Hartman
Browse files

W1: ioremap balanced with iounmap



ioremap must be balanced with iounmap in error path.

Please consider for 2.6.19.

Signed-off-by: default avatarAmol Lad <amol@verismonetworks.com>
Signed-off-by: default avatarEvgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 237ee312
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;