net: gemini: Fix missing clk_disable_unprepare() in error path of gemini_ethernet_por...
authorWang Hai <wanghai38@huawei.com>
Thu, 30 Jul 2020 07:30:00 +0000 (15:30 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Jul 2020 00:45:13 +0000 (17:45 -0700)
commit85496a29224188051b6135eb38da8afd4c584765
treedd76c3d2809eaa8ca3be4316060ddb159821cd0f
parent59929fbb45e06da7d501d3a97f10a91912181f7c
net: gemini: Fix missing clk_disable_unprepare() in error path of gemini_ethernet_port_probe()

Fix the missing clk_disable_unprepare() before return
from gemini_ethernet_port_probe() in the error handling case.

Fixes: 4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cortina/gemini.c