Re: [PATCH v2] ata: pata_octeon_cf: Fix refcount leak in octeon_cf_probe
From: Sergey Shtylyov
Date: Wed Jun 01 2022 - 16:43:44 EST
Hello!
On 6/1/22 11:59 AM, Miaoqian Lin wrote:
> of_find_device_by_node() takes reference, we should use put_device()
> to release it when not need anymore.
> Add missing put_device() to avoid refcount leak.
>
> Fixes: 43f01da0f279 ("MIPS/OCTEON/ata: Convert pata_octeon_cf.c to use device tree.")
> Signed-off-by: Miaoqian Lin <linmq006@xxxxxxxxx>
Reviewed-by: Sergey Shtylyov <s.shtylyov@xxxxxx>
[...]
MBR, Sergey