From aa8a8d664828c7184a2e775fb50611324ef21b5c Mon Sep 17 00:00:00 2001 From: Amol Lad Date: Wed, 6 Dec 2006 20:35:22 -0800 Subject: [PATCH] [PATCH] ioremap balanced with iounmap for drivers/char/istallion.c Signed-off-by: Amol Lad Acked-by: Alan Cox Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- drivers/char/istallion.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/char/istallion.c b/drivers/char/istallion.c index bd9195e179..8f591945eb 100644 --- a/drivers/char/istallion.c +++ b/drivers/char/istallion.c @@ -3476,6 +3476,8 @@ static int stli_initecp(stlibrd_t *brdp) if (sig.magic != cpu_to_le32(ECP_MAGIC)) { release_region(brdp->iobase, brdp->iosize); + iounmap(brdp->membase); + brdp->membase = NULL; return -ENODEV; } @@ -3632,6 +3634,8 @@ static int stli_initonb(stlibrd_t *brdp) sig.magic3 != cpu_to_le16(ONB_MAGIC3)) { release_region(brdp->iobase, brdp->iosize); + iounmap(brdp->membase); + brdp->membase = NULL; return -ENODEV; } -- 2.39.5