summaryrefslogtreecommitdiff
path: root/drivers/char/hw_random
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2006-07-30 14:04:04 +0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-08-01 00:28:43 +0400
commit58690664456b597796e58958861f365e096a1609 (patch)
treefd10e9cbe3ebe7a40086e147e982b3be81d90924 /drivers/char/hw_random
parentb8008b2bc21fb13b45964e21247f18c013d6e985 (diff)
downloadlinux-58690664456b597796e58958861f365e096a1609.tar.xz
[PATCH] hwrng: fix intel probe error unwind
The intel hwrng leaks an iomapped resource, if hwrng_register() failes. 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>
Diffstat (limited to 'drivers/char/hw_random')
-rw-r--r--drivers/char/hw_random/intel-rng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hw_random/intel-rng.c b/drivers/char/hw_random/intel-rng.c
index 6594bd5645f4..ccd7e7102234 100644
--- a/drivers/char/hw_random/intel-rng.c
+++ b/drivers/char/hw_random/intel-rng.c
@@ -164,7 +164,7 @@ static int __init mod_init(void)
if (err) {
printk(KERN_ERR PFX "RNG registering failed (%d)\n",
err);
- goto out;
+ goto err_unmap;
}
out:
return err;