]> git.baikalelectronics.ru Git - kernel.git/commit
cpuidle: dt: Add missing 'of_node_put()'
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Sun, 11 Jun 2017 12:28:54 +0000 (14:28 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 12 Jun 2017 12:36:13 +0000 (14:36 +0200)
commitcf432db255d58460390ff33876794c7541eb4430
tree605a95559058a5d8856dc42ab5c849d40d6f84fb
parenta0371087253a62be245161fc6425d369a2dcf240
cpuidle: dt: Add missing 'of_node_put()'

'of_node_put()' should be called on pointer returned by
'of_parse_phandle()' when done. In this function this is done in all path
except this 'continue', so add it.

Fixes: 409b080b9492 (drivers: cpuidle: Add status property to ARM idle states)
Signed-off-by: Christophe Jaillet <christophe.jaillet@wanadoo.fr>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpuidle/dt_idle_states.c