[PATCH] ALSA: snd-aoa: add of_node_put() in error path

2018-06-29 Thread Nicholas Mc Guire
Both calls to of_find_node_by_name() and of_get_next_child() return a node pointer with refcount incremented thus it must be explicidly decremented here after the last usage. As we are assured to have a refcounted np either from the initial of_find_node_by_name(NULL, name); or from the of_get_ne

Re: [PATCH] ALSA: snd-aoa: add of_node_put() in error path

2018-06-29 Thread Takashi Iwai
On Fri, 29 Jun 2018 19:07:42 +0200, Nicholas Mc Guire wrote: > > Both calls to of_find_node_by_name() and of_get_next_child() return a > node pointer with refcount incremented thus it must be explicidly > decremented here after the last usage. As we are assured to have a > refcounted np either