Attention is currently required from: osmith, daniel.
View Change
1 comment:
File src/common/osmux.c:
Patch Set #1, Line 67: <=
should probably be <, otherwise you check start_i twice? it's also < below for the start_j check
No, it must be <=.
See for instance scenario where you start with next_free_osmux_cid_lookup=3 and all but 0, 1, 2 are occupied.
You start with i=0,j=3 in the first loop, you reach the end of the array.
You start then the 2nd loop, and you need to check the case where i=0 because you still have to check j=0,1,2.
To view, visit change 30158. To unsubscribe, or for help writing mail filters, visit settings.
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: I72803fb172accbabfc81923572890f8ecb06cefd
Gerrit-Change-Number: 30158
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann@sysmocom.de>
Gerrit-Reviewer: osmith <osmith@sysmocom.de>
Gerrit-Attention: osmith <osmith@sysmocom.de>
Gerrit-Attention: daniel <dwillmann@sysmocom.de>
Gerrit-Comment-Date: Tue, 15 Nov 2022 14:52:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: osmith <osmith@sysmocom.de>
Gerrit-MessageType: comment