summaryrefslogtreecommitdiff
path: root/security/keys/user_defined.c
diff options
context:
space:
mode:
authorWen Yang <wen.yang99@zte.com.cn>2019-03-22 06:04:07 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-04 10:15:21 +0300
commit709606ec20c9144c44b49cf5a1d4b91710a22e95 (patch)
tree531cfc3b34d0c4ced727c88fadd54af0df7393ec /security/keys/user_defined.c
parentb341405561703aaadd50d88cad873a9d287e8a48 (diff)
downloadlinux-709606ec20c9144c44b49cf5a1d4b91710a22e95.tar.xz
net: xilinx: fix possible object reference leak
[ Upstream commit fa3a419d2f674b431d38748cb58fb7da17ee8949 ] 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@zte.com.cn> Cc: Anirudha Sarangi <anirudh@xilinx.com> Cc: John Linn <John.Linn@xilinx.com> Cc: "David S. Miller" <davem@davemloft.net> Cc: Michal Simek <michal.simek@xilinx.com> Cc: netdev@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin (Microsoft) <sashal@kernel.org>
Diffstat (limited to 'security/keys/user_defined.c')
0 files changed, 0 insertions, 0 deletions