]> err.no Git - linux-2.6/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)
commit06cd9396778d5b70ba27fa8158db78d6bc0f007b
tree21914455cd9f38ec71e067cdabc2f56aa315ea04
parent121361f72ca93cb6710e368bb89f9d976b1da443
[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