diff options
author | Brian Swetland <swetland@google.com> | 2009-01-28 23:25:40 -0500 |
---|---|---|
committer | Daniel Walker <dwalker@codeaurora.org> | 2010-05-12 12:14:59 -0400 |
commit | 4d4fb2660ddd2d8131ebc3314e4c648fc0f4b8dd (patch) | |
tree | d2021aa0449c50a2d2a2182f112aa9cc8bd15516 /arch/arm/mach-msm | |
parent | 2eb44eb9c8026f3f548bfbc903156b6aea54ed24 (diff) |
[ARM] msm: smd: don't crash if the smd channel table doesn't exist
Signed-off-by: Brian Swetland <swetland@google.com>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Diffstat (limited to 'arch/arm/mach-msm')
-rw-r--r-- | arch/arm/mach-msm/smd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-msm/smd.c b/arch/arm/mach-msm/smd.c index 64d12323995e..78031c0a6db3 100644 --- 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) | |||
204 | unsigned n; | 204 | unsigned n; |
205 | 205 | ||
206 | shared = smem_find(ID_CH_ALLOC_TBL, sizeof(*shared) * 64); | 206 | shared = smem_find(ID_CH_ALLOC_TBL, sizeof(*shared) * 64); |
207 | 207 | if (!shared) { | |
208 | pr_err("smd: cannot find allocation table\n"); | ||
209 | return; | ||
210 | } | ||
208 | for (n = 0; n < 64; n++) { | 211 | for (n = 0; n < 64; n++) { |
209 | if (smd_ch_allocated[n]) | 212 | if (smd_ch_allocated[n]) |
210 | continue; | 213 | continue; |