projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eb44eb
)
[ARM] msm: smd: don't crash if the smd channel table doesn't exist
author
Brian Swetland
<swetland@google.com>
Thu, 29 Jan 2009 04:25:40 +0000
(20:25 -0800)
committer
Daniel Walker
<dwalker@codeaurora.org>
Wed, 12 May 2010 16:14:59 +0000
(09:14 -0700)
Signed-off-by: Brian Swetland <swetland@google.com>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
arch/arm/mach-msm/smd.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-msm/smd.c
b/arch/arm/mach-msm/smd.c
index
64d1232
..
78031c0
100644
(file)
--- a/
arch/arm/mach-msm/smd.c
+++ b/
arch/arm/mach-msm/smd.c
@@
-204,7
+204,10
@@
static void smd_channel_probe_worker(struct work_struct *work)
unsigned n;
shared = smem_find(ID_CH_ALLOC_TBL, sizeof(*shared) * 64);
-
+ if (!shared) {
+ pr_err("smd: cannot find allocation table\n");
+ return;
+ }
for (n = 0; n < 64; n++) {
if (smd_ch_allocated[n])
continue;