]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] Fix OF node refcnt underflow in 836x and 832x platform code
authorLi Yang <leoli@freescale.com>
Wed, 17 Jan 2007 06:42:22 +0000 (14:42 +0800)
committerPaul Mackerras <paulus@samba.org>
Mon, 22 Jan 2007 10:27:35 +0000 (21:27 +1100)
commite3820c12926d28a9b878b4e74ad4fb58f6b17cd3
tree21914455cd9f38ec71e067cdabc2f56aa315ea04
parent3fe4b179449f7f8f2f7c1470a7b9313f55371e77
[POWERPC] Fix OF node refcnt underflow in 836x and 832x platform code

Incorrect use of of_find_node_by_name() causes of_node_put()
on a node which has already been put.  It causes the refcount of
the node to underflow, which triggers the WARN_ON in kref_get
for 836x and 832x.  This fixes it.

Signed-off-by: Li Yang <leoli@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/83xx/mpc832x_mds.c
arch/powerpc/platforms/83xx/mpc8360e_pb.c