-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Bluetooth: ISO: Fix issue with BIS tx_complete #93278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
/* | ||
* Copyright (c) 2024 Nordic Semiconductor ASA | ||
* Copyright (c) 2024-2025 Nordic Semiconductor ASA | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IIRC we don't need to update copyright year. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't we ever managed to write and guidelines on this :D I usually just update them when I remember them, but I can omit it if you prefer There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fine by me. I remember getting such comment long time ago, but can't find it now. |
||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
#include <stdbool.h> | ||
|
||
#include <zephyr/fff.h> | ||
#include <zephyr/kernel.h> | ||
|
||
#include "kernel.h" | ||
|
@@ -22,6 +25,7 @@ DEFINE_FAKE_VALUE_FUNC(int, k_work_submit, struct k_work *); | |
DEFINE_FAKE_VALUE_FUNC(int, k_work_submit_to_queue, struct k_work_q *, struct k_work *); | ||
DEFINE_FAKE_VALUE_FUNC(int, k_work_reschedule, struct k_work_delayable *, k_timeout_t); | ||
DEFINE_FAKE_VALUE_FUNC(int, k_work_schedule, struct k_work_delayable *, k_timeout_t); | ||
DEFINE_FAKE_VALUE_FUNC(int, k_work_busy_get, const struct k_work *); | ||
DEFINE_FAKE_VOID_FUNC(k_queue_init, struct k_queue *); | ||
DEFINE_FAKE_VOID_FUNC(k_queue_append, struct k_queue *, void *); | ||
DEFINE_FAKE_VALUE_FUNC(int, k_queue_is_empty, struct k_queue *); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Setting conn to NULL after the assertion will cause the assertion to access a NULL pointer. The conn = NULL assignment should remain after the assertion, but the assertion should be moved before this line or use a different approach to access the work structure.
Copilot uses AI. Check for mistakes.