[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190323.212155.1537951760061802531.davem@davemloft.net>
Date: Sat, 23 Mar 2019 21:21:55 -0400 (EDT)
From: David Miller <davem@...emloft.net>
To: wen.yang99@....com.cn
Cc: linux-kernel@...r.kernel.org, wang.yi59@....com.cn,
dougmill@...ux.ibm.com, netdev@...r.kernel.org
Subject: Re: [PATCH 2/3] net: ibm: fix possible object reference leak
From: Wen Yang <wen.yang99@....com.cn>
Date: Fri, 22 Mar 2019 11:04:08 +0800
> The call to ehea_get_eth_dn 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/ibm/ehea/ehea_main.c:3163:2-8: ERROR: missing of_node_put; acquired a node pointer with refcount incremented on line 3154, but without a corresponding object release within this function.
>
> Signed-off-by: Wen Yang <wen.yang99@....com.cn>
Applied.
Powered by blists - more mailing lists