答复: Re: [PATCH v2] powerpc/8xx: fix possible object reference leak

2019-03-25 Thread wen.yang99
>> The call to of_find_compatible_node returns a node pointer with refcount >> incremented thus it must be explicitly decremented after the last >> usage. >> irq_domain_add_linear also calls of_node_get to increase refcount, >> so irq_domain will not be affected when it is released. >> >> Detected

Re: [PATCH v2] powerpc/8xx: fix possible object reference leak

2019-03-25 Thread Michael Ellerman
Peng Hao writes: > From: Wen Yang > > The call to of_find_compatible_node returns a node pointer with refcount > incremented thus it must be explicitly decremented after the last > usage. > irq_domain_add_linear also calls of_node_get to increase refcount, > so irq_domain will not be affected

[PATCH v2] powerpc/8xx: fix possible object reference leak

2019-03-25 Thread Peng Hao
From: Wen Yang The call to of_find_compatible_node returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. irq_domain_add_linear also calls of_node_get to increase refcount, so irq_domain will not be affected when it is released. Detected by

Re: [PATCH v2] powerpc/8xx: fix possible object reference leak

2019-03-25 Thread Christophe Leroy
Le 25/03/2019 à 18:11, Peng Hao a écrit : From: Wen Yang The call to of_find_compatible_node returns a node pointer with refcount incremented thus it must be explicitly decremented after the last usage. irq_domain_add_linear also calls of_node_get to increase refcount, so irq_domain will