projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55922c9
)
ARM: S5PV210: Fix possible null pointer dereference
author
Jonghwan Choi
<jhbird.choi@samsung.com>
Thu, 12 May 2011 09:31:20 +0000
(18:31 +0900)
committer
Kukjin Kim
<kgene.kim@samsung.com>
Wed, 1 Jun 2011 22:06:35 +0000
(15:06 -0700)
Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-s5pv210/cpufreq.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-s5pv210/cpufreq.c
b/arch/arm/mach-s5pv210/cpufreq.c
index
22046e2
..
153af8b
100644
(file)
--- a/
arch/arm/mach-s5pv210/cpufreq.c
+++ b/
arch/arm/mach-s5pv210/cpufreq.c
@@
-101,12
+101,14
@@
static void s5pv210_set_refresh(enum s5pv210_dmc_port ch, unsigned long freq)
unsigned long tmp, tmp1;
void __iomem *reg = NULL;
- if (ch == DMC0)
+ if (ch == DMC0)
{
reg = (S5P_VA_DMC0 + 0x30);
- else if (ch == DMC1)
+ } else if (ch == DMC1) {
reg = (S5P_VA_DMC1 + 0x30);
- else
+ } else {
printk(KERN_ERR "Cannot find DMC port\n");
+ return;
+ }
/* Find current DRAM frequency */
tmp = s5pv210_dram_conf[ch].freq;