Skip to contentSkip to conversation

hwrng: fix intel probe error unwind

PATCH New Michael Buesch 1 participant 1 message Jul 26, 2006 Hardware random number generator core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwrng: fix intel probe error unwind

The intel hwrng leaks an iomapped resource, if hwrng_register() failes. This fixes it.

drivers/char/hw_random/intel-rng.c +1 -1
Index: linux-2.6/drivers/char/hw_random/intel-rng.c
===================================================================
@@ -164,7 +164,7 @@
 	if (err) {
 		printk(KERN_ERR PFX "RNG registering failed (%d)\n",
 		       err);
-		goto out;
+		goto err_unmap;
 	}
 out:
 	return err;
Signature · 1 line
Greetings Michael.