提交 34e86dd4 编写于 作者: T Tony Lindgren 提交者: Zheng Zengkai

ARM: OMAP2+: Fix uninitialized sr_inst

stable inclusion
from stable-5.10.32
commit 4f90db2e92d2d4930c85cb2138b452510eab189c
bugzilla: 51796

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

[ Upstream commit fc85dc42 ]

Fix uninitialized sr_inst.

Fixes: fbfa463b ("ARM: OMAP2+: Fix smartreflex init regression after dropping legacy data")
Reported-by: Nkernel test robot <lkp@intel.com>
Signed-off-by: NTony Lindgren <tony@atomide.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 885f9910
......@@ -188,7 +188,7 @@ static const char * const dra7_sr_instances[] = {
int __init omap_devinit_smartreflex(void)
{
const char * const *sr_inst;
const char * const *sr_inst = NULL;
int i, nr_sr = 0;
if (soc_is_omap44xx()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册