Unverified Commit 600d4614 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15789 slimbus: messaging: Free transaction ID in delayed interrupt scenario

parents 6e46868a d86eac44
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -147,8 +147,9 @@ int slim_do_transfer(struct slim_controller *ctrl, struct slim_msg_txn *txn)
	}

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

	if (!ret && need_tid && !txn->msg->comp) {
	if (ret == -ETIMEDOUT) {
		slim_free_txn_tid(ctrl, txn);
	} else if (!ret && need_tid && !txn->msg->comp) {
		unsigned long ms = txn->rl + HZ;

		timeout = wait_for_completion_timeout(txn->comp,