Sfoglia il codice sorgente

[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>
Michael Buesch 19 anni fa
parent
commit
5869066445
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      drivers/char/hw_random/intel-rng.c

+ 1 - 1
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;