Re: [PATCH] powerpc/powermac/low_i2c: Fix refcount leak bug in kw_i2c_probe()

2022-09-09 Thread Michael Ellerman
On Sat, 16 Jul 2022 15:07:58 +0800, Liang He wrote: > We should call of_node_put() for the reference 'parent' returned by > of_get_parent() which has increased the refcount. > > Applied to powerpc/next. [1/1] powerpc/powermac/low_i2c: Fix refcount leak bug in kw_i2c_probe() https://git.ke

[PATCH] powerpc/powermac/low_i2c: Fix refcount leak bug in kw_i2c_probe()

2022-07-16 Thread Liang He
We should call of_node_put() for the reference 'parent' returned by of_get_parent() which has increased the refcount. Fixes: 730745a5c450 ("[PATCH] 1/5 powerpc: Rework PowerMac i2c part 1") Signed-off-by: Liang He --- arch/powerpc/platforms/powermac/low_i2c.c | 1 + 1 file changed, 1 insertion(+