Skip to content

Commit

Permalink
W1: ioremap balanced with iounmap
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Amol Lad authored and Greg Kroah-Hartman committed Nov 16, 2006
1 parent 237ee31 commit e45413e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/w1/masters/matrox_w1.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e45413e

Please sign in to comment.