phy: cadence: Sierra: Fix error return code in cdns_sierra_phy_probe()
stable inclusion from stable-v5.10.44 commit d83075c25a28e6e8f02e531c8dd4b4e0b58c3ef5 bugzilla: https://bugzilla.openeuler.org/show_bug.cgi?id=461 CVE: NA ------------------------------------------------- commit 6411e386 upstream. Fix to return a negative error code from the error handling case instead of 0, as done elsewhere in this function. Fixes: a43f72ae ("phy: cadence: Sierra: Change MAX_LANES of Sierra to 16") Reported-by: NHulk Robot <hulkci@huawei.com> Signed-off-by: NWang Wensheng <wangwensheng4@huawei.com> Link: https://lore.kernel.org/r/20210517015749.127799-1-wangwensheng4@huawei.comSigned-off-by: NVinod Koul <vkoul@kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Nlcr <lichaoran21@mails.ucas.ac.cn> Reviewed-by: Jian Cheng <cj.chengjian(a)huawei.com>
Showing
想要评论请 注册 或 登录