+ genalloc-fix-device-node-resource-counter.patch added to -mm tree

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

 



The patch titled
     Subject: genalloc: fix device node resource counter
has been added to the -mm tree.  Its filename is
     genalloc-fix-device-node-resource-counter.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/genalloc-fix-device-node-resource-counter.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/genalloc-fix-device-node-resource-counter.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Vladimir Zapolskiy <vladimir_zapolskiy@xxxxxxxxxx>
Subject: genalloc: fix device node resource counter

Decrement the np_pool device_node refcount, which was incremented on
the preceding of_parse_phandle() call.

Signed-off-by: Vladimir Zapolskiy <vladimir_zapolskiy@xxxxxxxxxx>
Cc: Will Deacon <will.deacon@xxxxxxx>
Cc: Olof Johansson <olof@xxxxxxxxx>
Cc: Catalin Marinas <catalin.marinas@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 lib/genalloc.c |    1 +
 1 file changed, 1 insertion(+)

diff -puN lib/genalloc.c~genalloc-fix-device-node-resource-counter lib/genalloc.c
--- a/lib/genalloc.c~genalloc-fix-device-node-resource-counter
+++ a/lib/genalloc.c
@@ -637,6 +637,7 @@ struct gen_pool *of_get_named_gen_pool(s
 	if (!np_pool)
 		return NULL;
 	pdev = of_find_device_by_node(np_pool);
+	of_node_put(np_pool);
 	if (!pdev)
 		return NULL;
 	return dev_get_gen_pool(&pdev->dev);
_

Patches currently in -mm which might be from vladimir_zapolskiy@xxxxxxxxxx are

genalloc-fix-device-node-resource-counter.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