+ hwrng-fix-geode-probe-error-unwind.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     hwrng: fix geode probe error unwind

has been added to the -mm tree.  Its filename is

     hwrng-fix-geode-probe-error-unwind.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: hwrng: fix geode probe error unwind
From: Michael Buesch <mb@xxxxxxxxx>

The geode hwrng leaks an iomapped resource, if hwrng_register() fails.
This fixes it.

Signed-off-by: Michael Buesch <mb@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/char/hw_random/geode-rng.c |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff -puN drivers/char/hw_random/geode-rng.c~hwrng-fix-geode-probe-error-unwind drivers/char/hw_random/geode-rng.c
--- a/drivers/char/hw_random/geode-rng.c~hwrng-fix-geode-probe-error-unwind
+++ a/drivers/char/hw_random/geode-rng.c
@@ -107,10 +107,14 @@ found:
 	if (err) {
 		printk(KERN_ERR PFX "RNG registering failed (%d)\n",
 		       err);
-		goto out;
+		goto err_unmap;
 	}
 out:
 	return err;
+
+err_unmap:
+	iounmap(mem);
+	goto out;
 }
 
 static void __exit mod_exit(void)
_

Patches currently in -mm which might be from mb@xxxxxxxxx are

git-netdev-all.patch
git-wireless-bcm43xx-fix.patch
hwrng-fix-intel-probe-error-unwind.patch
hwrng-fix-geode-probe-error-unwind.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux