Skip to content

Commit

Permalink
ARM: OMAP2+: Fix uninitialized sr_inst
Browse files Browse the repository at this point in the history
[ Upstream commit fc85dc4 ]

Fix uninitialized sr_inst.

Fixes: fbfa463 ("ARM: OMAP2+: Fix smartreflex init regression after dropping legacy data")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
tmlind authored and gregkh committed Apr 21, 2021
1 parent c3efce8 commit 54a4243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/sr_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 54a4243

Please sign in to comment.