Skip to content
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

mgmt/mcumgr: Fixing use of k_fifo function on net buf #33780

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

de-nordic
Copy link
Collaborator

Fixing problem where k_fifo functions have been used to get/put
data from/info net buf, where documentation it has been strictly
forbidding so.

Found, reported and solution suggested by jrhees-cae.

Fixes: #32579

Signed-off-by: Dominik Ermel [email protected]

@de-nordic
Copy link
Collaborator Author

@jrhees-cae Is this expected solution to the problem?

@de-nordic
Copy link
Collaborator Author

@khutchens can you also look at this?

Fixing problem where k_fifo functions have been used to get/put
data from/info net buf, where documentation has been strictly
forbidding so.

Found, reported and solution suggested by jrhees-cae.

Fixes: zephyrproject-rtos#32579

Signed-off-by: Dominik Ermel <[email protected]>
@khutchens
Copy link

Looks correct to me. I've been using and testing an identical patch on my fork for the last two weeks with success.

@jrhees-cae
Copy link

LGTM. This matches my local patch as well.

@MaureenHelm MaureenHelm merged commit f47334a into zephyrproject-rtos:master Mar 29, 2021
@de-nordic de-nordic deleted the fix-32579 branch November 30, 2021 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Corrupt CBOR payloads in MCUMGR when sending multiple commands together
7 participants