aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-07-15 14:17:19 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-07-15 14:17:19 +0200
commit1139ec1d0f20014bb17ea5d5cb65478b4489a8e7 (patch)
tree54400475203bd8318834d71f1f8ed56060bdaec2
parent3db617f14a0314a0e2a233b3ddaba1501213c0e5 (diff)
sba: Fix loop exit in SBAController::alloc (Coverity)
The commit 506f156f7a4aebb52dace00a760f86b2b4f5e19a has reverted the TS search order. The outer loop exit condition was not updated accordingly. This bug would would only lead to an error if there were multiple TRX where the first TRX has not got any PDCH assigned. This commit corrects the break condition. Fixes: Coverity CID 1311776 Sponsored-by: On-Waves ehf
-rw-r--r--src/sba.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sba.cpp b/src/sba.cpp
index 8db057b..6aeeb7c 100644
--- a/src/sba.cpp
+++ b/src/sba.cpp
@@ -62,7 +62,7 @@ int SBAController::alloc(
continue;
break;
}
- if (ts < 8)
+ if (ts >= 0)
break;
}
if (trx == 8) {