Skip to content
Commit 1cfc4bdd authored by Rajendra Nayak's avatar Rajendra Nayak Committed by Tony Lindgren
Browse files

ARM: OMAP2+: Powerdomain: Fix unchecked dereference of arch_pwrdm



Commit 'cd8abed1' "ARM: OMAP2+: Powerdomain: Remove the need to
always have a voltdm associated to a pwrdm" leads to the following
Smatch complaint:

arch/arm/mach-omap2/powerdomain.c:131 _pwrdm_register()
	 error: we previously assumed 'arch_pwrdm' could be null (see line 105)

So, fix the unchecked dereference of arch_pwrdm.

Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarNishanth Menon <nm@ti.com>
Signed-off-by: default avatarRajendra Nayak <rnayak@ti.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 33e9c392
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment