Fix for Issue #494: check and handle return value of openair0_device_load() (develop branch)
lte-softmodem crashes when the SDR board is not connected, since functions to configure the non-existing board are called.
targets/RT/USER/lte-ru.c b/targets/RT/USER/lte-ru.c, init_RU_proc() tried to load the device (e.g. the USRP board) by calling openair0_device_load(&ru->rfdevice,&ru->openair0_cfg). openair0_device_load() returns -1 in case of error (like "No USRP Device found"). But the return value is not checked. So, lte-softmodem just continues and segfaults later.
This merge request fixes the issue in the "develop" branch.
Merge request reports
Activity
added bugfix + 1 deleted label
Hello @dreibh (Thomas)
Why did you close this MR?
Are you creating another one with develop as target branch?
Regards Raphael
added 2056 commits
-
3976284f...f8037ab6 - 2055 commits from branch
develop
- 2250cf26 - Merge remote-tracking branch 'upstream/develop' into dreibh/device-load-fix-develop-branch
-
3976284f...f8037ab6 - 2055 commits from branch
mentioned in issue #494 (closed)
OAI RAN-CI-develop build (350): failed (https://open5glab.eurecom.fr:8083/jenkins/job/RAN-CI-develop/350/)
mentioned in commit 4e523485