diff options
author | Michael Buesch <mb@bu3sch.de> | 2006-07-30 12:04:04 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-31 22:28:43 +0200 |
commit | 58690664456b597796e58958861f365e096a1609 (patch) | |
tree | fd10e9cbe3ebe7a40086e147e982b3be81d90924 /drivers/char/hw_random/intel-rng.c | |
parent | [PATCH] Fix kmem_cache_alloc() been documented twice (diff) | |
download | linux-58690664456b597796e58958861f365e096a1609.tar.xz linux-58690664456b597796e58958861f365e096a1609.zip |
[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/intel-rng.c')
-rw-r--r-- | drivers/char/hw_random/intel-rng.c | 2 |
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; |