summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps/lasat.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/maps/lasat.c')
-rw-r--r--drivers/mtd/maps/lasat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/maps/lasat.c b/drivers/mtd/maps/lasat.c
index 1c13d2dc0cdf..e34376321050 100644
--- a/drivers/mtd/maps/lasat.c
+++ b/drivers/mtd/maps/lasat.c
@@ -79,6 +79,7 @@ static int __init init_lasat(void)
return 0;
}
+ iounmap(lasat_map.virt);
return -ENXIO;
}
@@ -89,6 +90,7 @@ static void __exit cleanup_lasat(void)
map_destroy(lasat_mtd);
}
if (lasat_map.virt) {
+ iounmap(lasat_map.virt);
lasat_map.virt = 0;
}
}