Commit 69a68965 authored by zpershuai's avatar zpershuai Committed by Zheng Zengkai
Browse files

spi: spi-zynq-qspi: Fix some wrong goto jumps & missing error code



stable inclusion
from stable-5.10.46
commit f6d28f0e36e93570f2843abef9969681860c38e7
bugzilla: 168323
CVE: NA

--------------------------------

[ Upstream commit f131767e ]

In zynq_qspi_probe function, when enable the device clock is done,
the return of all the functions should goto the clk_dis_all label.

If num_cs is not right then this should return a negative error
code but currently it returns success.

Signed-off-by: default avatarzpershuai <zpershuai@gmail.com>
Link: https://lore.kernel.org/r/1622110857-21812-1-git-send-email-zpershuai@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarWeilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 9f1f60cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment