Skip to content

Commit

Permalink
[PATCH] hwrng: fix intel probe error unwind
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Buesch authored and Linus Torvalds committed Jul 31, 2006
1 parent b8008b2 commit 5869066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/hw_random/intel-rng.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5869066

Please sign in to comment.