libbsc: fix potential null-dereference in abis_nm_perform_test()
Change-Id: I93d816a20ba208e9fd32a1fc172a78ccd326e1ba Related: OS#5450
This commit is contained in:
parent
83fbbeb56c
commit
7baef66a61
|
@ -1993,6 +1993,8 @@ int abis_nm_perform_test(struct gsm_bts *bts, uint8_t obj_class,
|
|||
|
||||
if (!msg)
|
||||
msg = nm_msgb_alloc();
|
||||
if (!msg)
|
||||
return -ENOMEM;
|
||||
|
||||
msgb_tv_push(msg, NM_ATT_AUTON_REPORT, auton_report);
|
||||
msgb_tv_push(msg, NM_ATT_TEST_NO, test_nr);
|
||||
|
|
Reference in New Issue