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/nsp32.c | 5 +++++ 1 files changed, 5 insertions(+) diff -puN drivers/scsi/nsp32.c~ioremap-balanced-with-iounmap-drivers-scsi-nsp32c drivers/scsi/nsp32.c --- a/drivers/scsi/nsp32.c~ioremap-balanced-with-iounmap-drivers-scsi-nsp32c +++ a/drivers/scsi/nsp32.c @@ -3540,6 +3540,11 @@ static int __devinit nsp32_probe(struct nsp32_dbg(NSP32_DEBUG_REGISTER, "exit %d", ret); + if (ret) { + iounmap(data->MmioAddress); + data->MmioAddress = NULL; + } + return ret; } _ - 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