Skip to content

Commit

Permalink
[ARM] msm: smd: don't crash if the smd channel table doesn't exist
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Swetland <swetland@google.com>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
  • Loading branch information
Brian Swetland authored and Daniel Walker committed May 12, 2010
1 parent 2eb44eb commit 4d4fb26
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/arm/mach-msm/smd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4d4fb26

Please sign in to comment.