提交 4d4fb266 编写于 作者: B Brian Swetland 提交者: Daniel Walker

[ARM] msm: smd: don't crash if the smd channel table doesn't exist

Signed-off-by: NBrian Swetland <swetland@google.com>
Signed-off-by: NDaniel Walker <dwalker@codeaurora.org>
上级 2eb44eb9
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册