Commit 58690664 authored by Michael Buesch's avatar Michael Buesch Committed by Linus Torvalds

[PATCH] hwrng: fix intel probe error unwind

The intel hwrng leaks an iomapped resource, if hwrng_register() failes.
This fixes it.
Signed-off-by: default avatarMichael Buesch <mb@bu3sch.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b8008b2b
...@@ -164,7 +164,7 @@ static int __init mod_init(void) ...@@ -164,7 +164,7 @@ static int __init mod_init(void)
if (err) { if (err) {
printk(KERN_ERR PFX "RNG registering failed (%d)\n", printk(KERN_ERR PFX "RNG registering failed (%d)\n",
err); err);
goto out; goto err_unmap;
} }
out: out:
return err; return err;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment