All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hwrng: fix intel probe error unwind
@ 2006-07-26 15:34 Michael Buesch
  0 siblings, 0 replies; only message in thread
From: Michael Buesch @ 2006-07-26 15:34 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

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

Signed-off-by: Michael Buesch <mb@bu3sch.de>

Index: linux-2.6/drivers/char/hw_random/intel-rng.c
===================================================================
--- linux-2.6.orig/drivers/char/hw_random/intel-rng.c	2006-07-26 17:30:47.000000000 +0200
+++ linux-2.6/drivers/char/hw_random/intel-rng.c	2006-07-26 17:31:51.000000000 +0200
@@ -164,7 +164,7 @@
 	if (err) {
 		printk(KERN_ERR PFX "RNG registering failed (%d)\n",
 		       err);
-		goto out;
+		goto err_unmap;
 	}
 out:
 	return err;

-- 
Greetings Michael.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-07-26 15:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-26 15:34 [PATCH] hwrng: fix intel probe error unwind Michael Buesch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.