Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Dan Carpenter and committed by
Luiz Augusto von Dentz
183469bc fbcd1492

+1 -1
+1 -1
net/bluetooth/mgmt.c
··· 7865 7865 struct mgmt_conn_param *param = &cp->params[i]; 7866 7866 struct hci_conn_params *hci_param; 7867 7867 u16 min, max, latency, timeout; 7868 + bool update = false; 7868 7869 u8 addr_type; 7869 - bool update; 7870 7870 7871 7871 bt_dev_dbg(hdev, "Adding %pMR (type %u)", &param->addr.bdaddr, 7872 7872 param->addr.type);