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:
Sagar Dharia 2015-04-24 16:10:12 -06:00 committed by Gerrit - the friendly Code Review server
parent f00f84bb92
commit e577f13f94
1 changed files with 1 additions and 1 deletions

View File

@ -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);