Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1523952
| From | Luis Henriques <henrix@camandro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] bus: mvebu-mbus: fix iounmap() in error path |
| Date | 2016-11-17 00:00 +0100 |
| Message-ID | <sEhlo-Bi-27@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
This patch fixes the following Coccinelle error:
./drivers/bus/mvebu-mbus.c:1115:2-8: \
ERROR: missing iounmap; ioremap on line 1108 \
and execution via conditional on line 1113
Although all mvebu_mbus_common_init() callers seem to actually use
&mbus_state in the 1st argument, this is still a bug that could be
triggered by future changes.
Signed-off-by: Luis Henriques <henrix@camandro.org>
---
drivers/bus/mvebu-mbus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c
index c7f396903184..449466eff56f 100644
--- a/drivers/bus/mvebu-mbus.c
+++ b/drivers/bus/mvebu-mbus.c
@@ -1111,7 +1111,7 @@ static int __init mvebu_mbus_common_init(struct mvebu_mbus_state *mbus,
mbus->sdramwins_base = ioremap(sdramwins_phys_base, sdramwins_size);
if (!mbus->sdramwins_base) {
- iounmap(mbus_state.mbuswins_base);
+ iounmap(mbus->mbuswins_base);
return -ENOMEM;
}
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] bus: mvebu-mbus: fix iounmap() in error path Luis Henriques <henrix@camandro.org> - 2016-11-17 00:00 +0100 Re: [PATCH] bus: mvebu-mbus: fix iounmap() in error path Gregory CLEMENT <gregory.clement@free-electrons.com> - 2016-11-18 13:50 +0100
csiph-web