]> git.itanic.dy.fi Git - linux-stable/commit
net: systemport: Fix an error handling path in bcm_sysport_probe()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sun, 15 May 2022 17:01:56 +0000 (19:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 May 2022 07:57:31 +0000 (09:57 +0200)
commit2c560e90086f8f0761ace9546ecd78a2f9b50907
tree40be198b45121924ba3d3ce6ef6fc010cc59a60d
parenteb0ebbd4b0d4e38d958b8e49bc479711b7e796f7
net: systemport: Fix an error handling path in bcm_sysport_probe()

[ Upstream commit ef6b1cd11962aec21c58d137006ab122dbc8d6fd ]

if devm_clk_get_optional() fails, we still need to go through the error
handling path.

Add the missing goto.

Fixes: 6328a126896ea ("net: systemport: Manage Wake-on-LAN clock")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/99d70634a81c229885ae9e4ee69b2035749f7edc.1652634040.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/broadcom/bcmsysport.c