[PATCH v2 1/2] powerpc: cell: cbe_regs: Fix refcount bugs
Michael Ellerman
patch-notifications at ellerman.id.au
Fri Sep 9 22:07:12 AEST 2022
On Fri, 1 Jul 2022 22:49:48 +0800, Liang He wrote:
> There are several bugs as following:
>
> (1) In cbe_get_be_node(), we should hold the reference returned by
> of_find_xxx and of_get_xxx OF APIs and use it to call of_node_put
> (2) In cbe_fill_regs_map(), we should same as above
> (3) In cbe_regs_init(), during the iteration of for_each_node_by_type(),
> the refcount of 'cpu' will be automatically increased and decreased.
> However, there is a reference escaped out into 'map->cpu_node' and
> we should properly handle it.
>
> [...]
Applied to powerpc/next.
[1/2] powerpc: cell: cbe_regs: Fix refcount bugs
https://git.kernel.org/powerpc/c/ad4b323693abd221798a6479105d22c79605aa0f
[2/2] powerpc: cell: iommu: Hold reference returned by of_find_node_by_name()
https://git.kernel.org/powerpc/c/f4f8320b01677b467c768c43c1e1d10383a0e30d
cheers
More information about the Linuxppc-dev
mailing list