diff options
author | Michael Buesch <mb@bu3sch.de> | 2006-07-30 03:04:04 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-31 13:28:43 -0700 |
commit | 58690664456b597796e58958861f365e096a1609 (patch) | |
tree | fd10e9cbe3ebe7a40086e147e982b3be81d90924 /drivers/char/hw_random | |
parent | b8008b2bc21fb13b45964e21247f18c013d6e985 (diff) | |
download | kernel_samsung_tuna-58690664456b597796e58958861f365e096a1609.zip kernel_samsung_tuna-58690664456b597796e58958861f365e096a1609.tar.gz kernel_samsung_tuna-58690664456b597796e58958861f365e096a1609.tar.bz2 |
[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.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 6594bd5..ccd7e71 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; |