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
Makefile -rw-r--r-- 394 bytes
compat.c -rw-r--r-- 19.2 KB
compat_mq.c -rw-r--r-- 4.1 KB
ipc_sysctl.c -rw-r--r-- 7.0 KB
ipcns_notifier.c -rw-r--r-- 2.2 KB
mq_sysctl.c -rw-r--r-- 2.7 KB
mqueue.c -rw-r--r-- 35.4 KB
msg.c -rw-r--r-- 23.4 KB
msgutil.c -rw-r--r-- 3.6 KB
namespace.c -rw-r--r-- 4.7 KB
sem.c -rw-r--r-- 54.4 KB
shm.c -rw-r--r-- 31.9 KB
syscall.c -rw-r--r-- 2.3 KB
util.c -rw-r--r-- 22.5 KB
util.h -rw-r--r-- 5.8 KB

back to top