public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MIPS: TXx9: Add missing iounmap
@ 2017-11-23 21:49 Vasyl Gomonovych
  2018-03-05 22:37 ` James Hogan
  0 siblings, 1 reply; 2+ messages in thread
From: Vasyl Gomonovych @ 2017-11-23 21:49 UTC (permalink / raw)
  To: ralf, paul.gortmaker, jhogan, linux-mips; +Cc: linux-kernel, gomonovych

Add the missing iounmap() before put_device and
return from txx9_sramc_init().

Signed-off-by: Vasyl Gomonovych <gomonovych@gmail.com>
---
 arch/mips/txx9/generic/setup.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c
index 1791a44ee570..6ef5edb85d68 100644
--- a/arch/mips/txx9/generic/setup.c
+++ b/arch/mips/txx9/generic/setup.c
@@ -965,6 +965,8 @@ void __init txx9_sramc_init(struct resource *r)
 	}
 	return;
 exit_put:
+	if (dev->base)
+		iounmap(dev->base);
 	put_device(&dev->dev);
 	return;
 }
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-05 22:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-23 21:49 [PATCH] MIPS: TXx9: Add missing iounmap Vasyl Gomonovych
2018-03-05 22:37 ` James Hogan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox