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

Commit fd82130f authored by David Dai's avatar David Dai Committed by Gerrit - the friendly Code Review server
Browse files

msm: msm_bus: Disallow single node paths



Reject clients that attempt to register paths that have the
same source and destination.

Change-Id: Ied94efec2fe20188b11bf67337f04a23b33b2723
Signed-off-by: default avatarDavid Dai <daidavid1@codeaurora.org>
parent c92f19d6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1282,7 +1282,7 @@ static uint32_t register_client_adhoc(struct msm_bus_scale_pdata *pdata)
		src = pdata->usecase->vectors[i].src;
		dest = pdata->usecase->vectors[i].dst;

		if ((src < 0) || (dest < 0)) {
		if ((src < 0) || (dest < 0) || (src == dest)) {
			MSM_BUS_ERR("%s:Invalid src/dst.src %d dest %d",
				__func__, src, dest);
			goto exit_invalid_data;