projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18ff14c
)
mips: ar7: add missing iounmap() on error in ar7_gpio_init
author
Qinglang Miao
<miaoqinglang@huawei.com>
Wed, 28 Oct 2020 09:15:45 +0000
(17:15 +0800)
committer
Thomas Bogendoerfer
<tsbogend@alpha.franken.de>
Fri, 6 Nov 2020 10:32:06 +0000
(11:32 +0100)
Add the missing iounmap() of gpch->regs before return from
ar7_gpio_init() in the error handling case.
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/ar7/gpio.c
patch
|
blob
|
history
diff --git
a/arch/mips/ar7/gpio.c
b/arch/mips/ar7/gpio.c
index 8b006addd6ba524a3bc33e641669fe6b5ced8b62..ae0e01b9438ff54d368ba48e009b021d5f59253d 100644
(file)
--- a/
arch/mips/ar7/gpio.c
+++ b/
arch/mips/ar7/gpio.c
@@
-319,6
+319,7
@@
int __init ar7_gpio_init(void)
if (ret) {
printk(KERN_ERR "%s: failed to add gpiochip\n",
gpch->chip.label);
+ iounmap(gpch->regs);
return ret;
}
printk(KERN_INFO "%s: registered %d GPIOs\n",