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

[Backport v2.2] Bluetooth: Fix NULL pointer dereference when bt_send() fails #24925

Merged
merged 1 commit into from May 6, 2020

Conversation

jhedberg
Copy link
Member

@jhedberg jhedberg commented May 4, 2020

Backport of #24902

The last parameter to hci_cmd_done() is expected to be a valid net_buf
since the function immediately tries to dereference it. Fix this by
passing the appropriate buffer reference to the function.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
@jhedberg jhedberg added this to To do in Backports May 4, 2020
@jhedberg jhedberg added area: Bluetooth bug The issue is a bug, or the PR is fixing a bug labels May 4, 2020
@carlescufi carlescufi moved this from To do to Ready in Backports May 5, 2020
@jhedberg jhedberg merged commit dbfc2eb into zephyrproject-rtos:v2.2-branch May 6, 2020
Backports automation moved this from Ready to Done May 6, 2020
@jhedberg jhedberg deleted the backport_bt_null branch May 6, 2020 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth bug The issue is a bug, or the PR is fixing a bug
Projects
Status: Done
Backports
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants