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

!6018 v2 IB/hfi1: Fix sdma.h tx->num_descs off-by-one error

parents 8c1e8e1f 693b02d9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3200,7 +3200,7 @@ int _pad_sdma_tx_descs(struct hfi1_devdata *dd, struct sdma_txreq *tx)
{
	int rval = 0;

	if ((unlikely(tx->num_desc + 1 == tx->desc_limit))) {
	if ((unlikely(tx->num_desc == tx->desc_limit))) {
		rval = _extend_sdma_tx_descs(dd, tx);
		if (rval) {
			__sdma_txclean(dd, tx);