Skip to content

Commit 007584f

Browse files
ppryga-nordicrugeGerritsen
authored andcommitted
bluetooth: controller: Return code from sdc_init was overwirtten
There is a bug in hci_driver_init() that overwrites sdc_init() return code. That can lead to wired behavior in the host and stack cooperation if there is an error during SDC init. The commit fixes the issue. Signed-off-by: Piotr Pryga <[email protected]>
1 parent dc14f98 commit 007584f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

subsys/bluetooth/controller/hci_driver.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,6 +1519,9 @@ static int hci_driver_init(const struct device *dev)
15191519
int err = 0;
15201520

15211521
err = sdc_init(sdc_assertion_handler);
1522+
if (err) {
1523+
return err;
1524+
}
15221525

15231526
err = configure_supported_features();
15241527
if (err) {

0 commit comments

Comments
 (0)