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

Commit 1701c670 authored by Sagar Dharia's avatar Sagar Dharia Committed by Gerrit - the friendly Code Review server
Browse files

slimbus: Protect transaction-id assignment



Transaction ID is used by slimbus for reply-information or
reply-value messages. Ensure transaction ID assignment is protected
to avoid race condition between 2 or more transactions.

Change-Id: Ie8943de0bcbb9d7fddc22025af051d74e6c9901a
Signed-off-by: default avatarSagar Dharia <sdharia@codeaurora.org>
parent afccab5c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -731,8 +731,8 @@ static int slim_processtxn(struct slim_controller *ctrl,
			ctrl->last_tid++;
		}
		ctrl->txnt[i] = txn;
		spin_unlock(&ctrl->txn_lock);
		txn->tid = i;
		spin_unlock(&ctrl->txn_lock);
	}

	ret = ctrl->xfer_msg(ctrl, txn);