Skip to content

Commit f09dcef

Browse files
committed
zblue: hfp: ag: fix crash during repeated connect-disconnect cycles
bug: v/82462 Rootcause: stack overflow Signed-off-by: YuhengLi <liyuheng@xiaomi.com>
1 parent d70c16c commit f09dcef

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,7 @@ if(CONFIG_BLUETOOTH)
740740
list(APPEND CFLAGS -O0)
741741
endif()
742742

743+
list(APPEND CFLAGS -fno-inline-functions)
743744
list(APPEND CFLAGS -Wno-strict-prototypes)
744745

745746
nuttx_add_library(libbluetooth STATIC)

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ endif #CONFIG_BLUETOOTH_STORAGE_UPDATE
582582
ifeq ($(CONFIG_ARCH_SIM),y)
583583
CFLAGS += -O0
584584
endif
585+
CFLAGS += -fno-inline-functions
585586
CFLAGS += -Wno-strict-prototypes #-fno-short-enums -Wl,-no-enum-size-warning #-Werror
586587
PRIORITY = SCHED_PRIORITY_DEFAULT
587588
STACKSIZE = $(CONFIG_BLUETOOTH_TASK_STACK_SIZE)
@@ -708,4 +709,3 @@ BIN := $(APPDIR)/staging/libbluetooth.a
708709
endif
709710

710711
include $(APPDIR)/Application.mk
711-

0 commit comments

Comments
 (0)