Skip to content

Bluetooth: Fix missing return statement in le_conn_param_req() #14757

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

Merged
merged 1 commit into from
Mar 21, 2019

Conversation

jhedberg
Copy link
Member

The le_conn_param_req() function was missing a return statement in
case of a failed connection lookup. This could lead to replying to the
connection parameter request twice as well as passing NULL to
bt_conn_unref(). The latter issue also triggered a Coverity warning.

Fixes CID 196638

Signed-off-by: Johan Hedberg [email protected]

The le_conn_param_req() function was missing a return statement in
case of a failed connection lookup. This could lead to replying to the
connection parameter request twice as well as passing NULL to
bt_conn_unref(). The latter issue also triggered a Coverity warning.

Fixes CID 196638

Signed-off-by: Johan Hedberg <[email protected]>
@jhedberg jhedberg added bug The issue is a bug, or the PR is fixing a bug area: Bluetooth labels Mar 20, 2019
@jhedberg jhedberg added this to the v1.14.0 milestone Mar 20, 2019
@jhedberg jhedberg requested a review from carlescufi March 20, 2019 19:42
@jhedberg jhedberg requested review from sjanc and Vudentz as code owners March 20, 2019 19:42
@jhedberg jhedberg requested a review from nashif March 20, 2019 19:44
Copy link
Collaborator

@Vudentz Vudentz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@codecov-io
Copy link

Codecov Report

Merging #14757 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14757      +/-   ##
==========================================
- Coverage    52.5%    52.5%   -0.01%     
==========================================
  Files         309      309              
  Lines       45047    45047              
  Branches    10418    10418              
==========================================
- Hits        23654    23653       -1     
- Misses      16586    16587       +1     
  Partials     4807     4807
Impacted Files Coverage Δ
subsys/bluetooth/host/hci_core.c 44.14% <0%> (-0.06%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3f34fea...b563bab. Read the comment docs.

@jhedberg jhedberg merged commit 4cac39e into zephyrproject-rtos:master Mar 21, 2019
@jhedberg jhedberg deleted the missing_return branch March 21, 2019 08:05
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
None yet
Development

Successfully merging this pull request may close these issues.

4 participants