Project

General

Profile

Actions

Bug #2757

closed

rate_ctr_group_alloc with identical index doesn't return error

Added by laforge over 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
libosmocore
Target version:
-
Start date:
12/14/2017
Due date:
% Done:

100%

Spec Reference:

Description

As seen by the bug fixed in Change-Id I1b56f8d7b47597ed263e6808074483edca0895de of osmo-bts.git, (https://gerrit.osmocom.org/#/c/5344) the rate_ctr_group_alloc() function appears to accept allocation of the same counter group for identical index, which is of course an error.

Let's make sure we return an error, and also make sure that all known callers actually deal with the error somehow (e.g. if the BTS counters couldn't be allocated, the entire BTS allocation should fail).

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 48.8 MB)