Messages in this thread | | | Date | Mon, 14 Mar 2022 15:52:34 +0100 | From | Thomas Bogendoerfer <> | Subject | Re: [PATCH] mips: cdmm: Fix refcount leak in mips_cdmm_phys_base |
| |
On Wed, Mar 09, 2022 at 09:17:10AM +0000, Miaoqian Lin wrote: > The of_find_compatible_node() function returns a node pointer with > refcount incremented, We should use of_node_put() on it when done > Add the missing of_node_put() to release the refcount. > > Fixes: 2121aa3e2312 ("mips: cdmm: Add mti,mips-cdmm dtb node support") > Signed-off-by: Miaoqian Lin <linmq006@gmail.com> > --- > drivers/bus/mips_cdmm.c | 1 + > 1 file changed, 1 insertion(+)
applied to mips-next.
Thomas.
-- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]
| |