summaryrefslogtreecommitdiff
path: root/net/bluetooth
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2024-05-24 13:14:02 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-07-15 04:34:08 +0300
commit183469bccf68cb05dfb56cc47e73520217854bab (patch)
tree1edb09bd88a57a687c46a9c3cc5329d75335ea69 /net/bluetooth
parentfbcd1492d8c0ae39bf9f1d3d85228e7e279c4d24 (diff)
downloadlinux-183469bccf68cb05dfb56cc47e73520217854bab.tar.xz
Bluetooth: MGMT: Uninitialized variable in load_conn_param()
The "update" variable needs to be initialized to false. Fixes: 0ece498c27d8 ("Bluetooth: MGMT: Make MGMT_OP_LOAD_CONN_PARAM update existing connection") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 20eca8a9c681..3ab1558ff391 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -7865,8 +7865,8 @@ static int load_conn_param(struct sock *sk, struct hci_dev *hdev, void *data,
struct mgmt_conn_param *param = &cp->params[i];
struct hci_conn_params *hci_param;
u16 min, max, latency, timeout;
+ bool update = false;
u8 addr_type;
- bool update;
bt_dev_dbg(hdev, "Adding %pMR (type %u)", &param->addr.bdaddr,
param->addr.type);