From: Amol Lad <amol@xxxxxxxxxxxxxxxxxxx> ioremap must be balanced by an iounmap and failing to do so can result in a memory leak. Signed-off-by: Amol Lad <amol@xxxxxxxxxxxxxxxxxxx> Cc: James Bottomley <James.Bottomley@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/scsi/fdomain.c | 6 +++++- 1 files changed, 5 insertions(+), 1 deletion(-) diff -puN drivers/scsi/fdomain.c~ioremap-balanced-with-iounmap-drivers-scsi-fdomainc drivers/scsi/fdomain.c --- a/drivers/scsi/fdomain.c~ioremap-balanced-with-iounmap-drivers-scsi-fdomainc +++ a/drivers/scsi/fdomain.c @@ -779,7 +779,11 @@ found: else printk( " FAILURE\n" ); #endif - if (!flag) return 0; /* iobase not found */ + if (!flag) { + if (bios_mem) + iounmap(bios_mem); + return 0; /* iobase not found */ + } *irq = fdomain_get_irq( base ); *iobase = base; _ - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html