From: Michael Buesch Date: Sun, 30 Jul 2006 10:04:04 +0000 (-0700) Subject: [PATCH] hwrng: fix intel probe error unwind X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=58690664456b597796e58958861f365e096a1609;p=linux-beck.git [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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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;