Files
android_kernel_xiaomi_sm8450/arch/powerpc/kernel
Michael Ellerman 6a281856c0 [POWERPC] Add a warning to help trackdown device_node refcounting bugs
When the refcount for a device node goes to 0, we call the
destructor - of_node_release(). This should only happen if we've
already detached the node from the device tree.

So add a flag OF_DETACHED which tracks detached-ness, and if we
find ourselves in of_node_release() without it set, issue a
warning and don't free the device_node. To avoid warning
continuously reinitialise the kref to a sane value.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-07-10 21:53:47 +10:00
..
2007-05-11 05:38:25 -04:00
2007-05-08 13:37:51 +10:00
2006-12-11 16:35:07 +11:00
2007-05-08 13:40:31 +10:00
2006-08-08 17:08:56 +10:00
2007-06-14 22:29:55 +10:00
2007-05-08 13:37:51 +10:00