Re: [PATCH 1/3] net: xilinx: fix possible object reference leak

From: David Miller
Date: Sat Mar 23 2019 - 21:21:51 EST


From: Wen Yang <wen.yang99@xxxxxxxxxx>
Date: Fri, 22 Mar 2019 11:04:07 +0800

> The call to of_parse_phandle returns a node pointer with refcount
> incremented thus it must be explicitly decremented after the last
> usage.
>
> Detected by coccinelle with the following warnings:
> ./drivers/net/ethernet/xilinx/xilinx_axienet_main.c:1624:1-7: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 1569, but without a corresponding object release within this function.
>
> Signed-off-by: Wen Yang <wen.yang99@xxxxxxxxxx>

Applied.