projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5869066
)
[PATCH] hwrng: fix geode probe error unwind
author
Michael Buesch
<mb@bu3sch.de>
Sun, 30 Jul 2006 10:04:05 +0000
(
03:04
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 31 Jul 2006 20:28:43 +0000
(13:28 -0700)
The geode hwrng leaks an iomapped resource, if hwrng_register() fails.
This fixes it.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/hw_random/geode-rng.c
patch
|
blob
|
history
diff --git
a/drivers/char/hw_random/geode-rng.c
b/drivers/char/hw_random/geode-rng.c
index be61f22ee7bb3e9a69d452236ef700b1104581e6..d37ced0d132ba3d09bc0e972820dad0c445998e6 100644
(file)
--- a/
drivers/char/hw_random/geode-rng.c
+++ b/
drivers/char/hw_random/geode-rng.c
@@
-107,10
+107,14
@@
found:
if (err) {
printk(KERN_ERR PFX "RNG registering failed (%d)\n",
err);
- goto
out
;
+ goto
err_unmap
;
}
out:
return err;
+
+err_unmap:
+ iounmap(mem);
+ goto out;
}
static void __exit mod_exit(void)