From: Stephen Warren Date: Mon, 11 Feb 2013 21:15:32 +0000 (-0700) Subject: of: fix recursive locking in of_get_next_available_child() X-Git-Tag: v3.9-rc1~147^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c31a0c052205e3ec24efc3fe18ef70c3e913f2d4;p=pandora-kernel.git of: fix recursive locking in of_get_next_available_child() of_get_next_available_child() acquires devtree_lock, then calls of_device_is_available() which calls of_get_property() which calls of_find_property() which tries to re-acquire devtree_lock, thus causing deadlock. To avoid this, create a new __of_device_is_available() which calls __of_get_property() instead, which calls __of_find_property(), which does not take the lock,. Update of_get_next_available_child() to call the new __of_device_is_available() since it already owns the lock. Signed-off-by: Stephen Warren Signed-off-by: Grant Likely --- Reading git-diff-tree failed