Skip to content

Commit

Permalink
Bluetooth: Controller: Fix coverity issue 248393
Browse files Browse the repository at this point in the history
[Coverity CID: 248393] Explicit null dereferenced in
subsys/bluetooth/controller/ll_sw/ull_scan_aux.c

Fixes #58942.

Signed-off-by: Vinayak Kariappa Chettimada <[email protected]>
  • Loading branch information
cvinayak authored and carlescufi committed Jul 3, 2023
1 parent 28ed7f0 commit bc60619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion subsys/bluetooth/controller/ll_sw/ull_scan_aux.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ void ull_scan_aux_setup(memq_link_t *link, struct node_rx_hdr *rx)
* Setup synchronization if address and SID match in the
* Periodic Advertiser List or with the explicitly supplied.
*/
if (IS_ENABLED(CONFIG_BT_CTLR_SYNC_PERIODIC) && sync && adi &&
if (IS_ENABLED(CONFIG_BT_CTLR_SYNC_PERIODIC) && aux && sync && adi &&
ull_sync_setup_sid_match(scan, PDU_ADV_ADI_SID_GET(adi))) {
ull_sync_setup(scan, aux, rx, si);
}
Expand Down

0 comments on commit bc60619

Please sign in to comment.