diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-07-15 14:17:19 +0200 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-07-15 14:17:19 +0200 |
commit | 1139ec1d0f20014bb17ea5d5cb65478b4489a8e7 (patch) | |
tree | 54400475203bd8318834d71f1f8ed56060bdaec2 /src | |
parent | 3db617f14a0314a0e2a233b3ddaba1501213c0e5 (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
Diffstat (limited to 'src')
-rw-r--r-- | src/sba.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sba.cpp b/src/sba.cpp index 8db057b7..6aeeb7cb 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) { |