forked from cellular-infrastructure/osmo-pcu
sba: Fix loop exit in SBAController::alloc (Coverity)
The commit 506f156f7a
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
This commit is contained in:
parent
3db617f14a
commit
1139ec1d0f
|
@ -62,7 +62,7 @@ int SBAController::alloc(
|
|||
continue;
|
||||
break;
|
||||
}
|
||||
if (ts < 8)
|
||||
if (ts >= 0)
|
||||
break;
|
||||
}
|
||||
if (trx == 8) {
|
||||
|
|
Loading…
Reference in New Issue