Skip to content

Conversation

@henrikbrixandersen
Copy link
Member

Avoid double-freeing the net_buf after successfully enqueuing it via usbd_ep_enqueue(). When this call succeeds, is is up the the USB device stack to free the passed net_buf.

Avoid double-freeing the net_buf after successfully enqueuing it via
usbd_ep_enqueue(). When this call succeeds, is is up the the USB device
stack to free the passed net_buf.

Signed-off-by: Henrik Brix Andersen <henrik@brixandersen.dk>
@henrikbrixandersen henrikbrixandersen added the bug Something isn't working label Jul 17, 2025
@henrikbrixandersen henrikbrixandersen merged commit 73454f6 into CANnectivity:main Jul 17, 2025
6 checks passed
@henrikbrixandersen henrikbrixandersen deleted the usbd_next_avoid_double_free branch July 17, 2025 22:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant