Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d4fb266 authored by Brian Swetland's avatar Brian Swetland Committed by Daniel Walker
Browse files

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

parent 2eb44eb9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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;