https://github.com/torvalds/linux
Revision 1cfc4bdd51970ac07c9eea545e65a3b16dc269b6 authored by Rajendra Nayak on 02 December 2013, 19:38:14 UTC, committed by Tony Lindgren on 02 December 2013, 19:38:14 UTC
Commit 'cd8abed' "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: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
1 parent 33e9c39
History
Tip revision: 1cfc4bdd51970ac07c9eea545e65a3b16dc269b6 authored by Rajendra Nayak on 02 December 2013, 19:38:14 UTC
ARM: OMAP2+: Powerdomain: Fix unchecked dereference of arch_pwrdm
Tip revision: 1cfc4bd
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1.1 KB
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 93.2 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 260.4 KB
Makefile -rw-r--r-- 48.2 KB
README -rw-r--r-- 18.3 KB
REPORTING-BUGS -rw-r--r-- 7.3 KB

README

back to top