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

Commit aeccb20f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "soc: qcom: smd: Range check edge on open"

parents a986fb16 bb35da62
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1971,6 +1971,11 @@ int smd_named_open_on_edge(const char *name, uint32_t edge,
	struct smd_channel *ch;
	unsigned long flags;

	if (edge >= SMD_NUM_TYPE) {
		pr_err("%s: edge:%d is invalid\n", __func__, edge);
		return -EINVAL;
	}

	if (!smd_edge_inited(edge)) {
		SMD_INFO("smd_open() before smd_init()\n");
		return -EPROBE_DEFER;