X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/784b0f3ae62567f1a5959aaee322c1991c122a19..c8b7636f71869976864e09ba2647bc8576c56540:/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c index e34c84c97..28e1a8505 100644 --- a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c +++ b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c @@ -1202,12 +1202,12 @@ int rtl8366_smi_init(struct rtl8366_smi *smi) if (err) { dev_err(smi->parent, "VLAN initialization failed, err=%d\n", err); - goto err_disable_hw; + goto err_free_sck; } err = rtl8366_enable_all_ports(smi, 1); if (err) - goto err_disable_hw; + goto err_free_sck; err = rtl8366_smi_mii_init(smi); if (err)