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: Sagar Dharia <sdharia@codeaurora.org>
This commit is contained in:
parent
f00f84bb92
commit
e577f13f94
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue