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>
This commit is contained in:
parent
237ee312e1
commit
e45413eb70
@ -215,6 +215,8 @@ static int __devinit matrox_w1_probe(struct pci_dev *pdev, const struct pci_devi
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err_out_free_device:
|
err_out_free_device:
|
||||||
|
if (dev->virt_addr)
|
||||||
|
iounmap(dev->virt_addr);
|
||||||
kfree(dev);
|
kfree(dev);
|
||||||
|
|
||||||
return err;
|
return err;
|
||||||
|
Loading…
Reference in New Issue
Block a user