Skip to content

Commit 71c33b8

Browse files
krish2718rlubos
authored andcommitted
samples: wifi: ble_coex: Fix crash when Zperf is started
Zperf parameters data structure is not initialized, and with the upmerge changes a function pointer was added as part of the parameters, and if the uninitialized struct has set this to non-zero, then a random address is called by the custom loader function pointer, this causes a crash. Initialize the parameters to zero. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 54d780f commit 71c33b8

File tree

1 file changed

+1
-1
lines changed
  • samples/wifi/ble_coex/src

1 file changed

+1
-1
lines changed

samples/wifi/ble_coex/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ int main(void)
424424
}
425425

426426
if (test_wlan) {
427-
struct zperf_upload_params params;
427+
struct zperf_upload_params params = { 0 };
428428

429429
/* Start Wi-Fi traffic */
430430
LOG_INF("Starting Wi-Fi benchmark: Zperf client");

0 commit comments

Comments
 (0)