diff options
author | Ilhan FOSSE <ilhan.fosse@qorvo.com> | 2022-10-05 10:28:17 +0200 |
---|---|---|
committer | Clément Viel <clement.viel@qorvo.com> | 2022-12-01 16:26:47 +0100 |
commit | 6b67c67f07ac09b4aaa333850c62ded47fcafe6f (patch) | |
tree | 2a1279f46e3607e8a8d218e9a9b567946daed705 | |
parent | 3c21e3f7c23c6d40bb5e235bbb99b79b27b06024 (diff) | |
download | uwb-6b67c67f07ac09b4aaa333850c62ded47fcafe6f.tar.gz |
mac: added NULL checkingandroid-t-qpr2-beta-2_r0.5android-t-qpr2-beta-2_r0.3
Bug: 246397732
Change-Id: I2819bb976bff96860c3699aa9fd013de284b4742
Signed-off-by: Clément Viel <clement.viel@qorvo.com>
-rw-r--r-- | mac/fira_region_call.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mac/fira_region_call.c b/mac/fira_region_call.c index 8e324aa..1438d4b 100644 --- a/mac/fira_region_call.c +++ b/mac/fira_region_call.c @@ -306,6 +306,9 @@ static int fira_session_params_set_measurement_sequence_step( GET_ANTENNA(step_attrs[STEP_ATTR(TX_ANT_SET_RANGING)], step->tx_ant_set_ranging); + if (!step_attrs[STEP_ATTR(RX_ANT_SETS_RANGING)]) + return -EINVAL; + r = nla_parse_nested(rx_ant_sets_attrs, ASR_ATTR(MAX), step_attrs[STEP_ATTR(RX_ANT_SETS_RANGING)], rx_ant_sets_ranging_policy, info->extack); |