si2quater: check return value of osmo_earfcn_del()

Change-Id: I227dad57737721c40a508f67616d9f5003bb1a3e
Fixes: CID#313584
This commit is contained in:
Vadim Yanitskiy 2023-04-07 18:22:38 +07:00
parent f2f0ab209d
commit ba6fd4f8e4
1 changed files with 3 additions and 1 deletions

View File

@ -2078,7 +2078,9 @@ DEFUN_USRATTR(cfg_bts_si2quater_neigh_add,
vty_out(vty, "%% Warning: not enough space in SI2quater (%u/%u used) for a given EARFCN %u%s",
bts->si2q_count, SI2Q_MAX_NUM, arfcn, VTY_NEWLINE);
osmo_earfcn_del(e, arfcn);
if (osmo_earfcn_del(e, arfcn) != 0)
vty_out(vty, "%% Failed to roll-back adding EARFCN %u%s", arfcn, VTY_NEWLINE);
return CMD_WARNING;
}