aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2016-08-29 00:19:47 -0400
committerMarcel Holtmann <marcel@holtmann.org>2016-09-19 14:19:34 -0400
commit56f787c5024de7829f8cccce7569feb520829baf (patch)
treef83cd0c68a0322fad91867b41d8344a094916a58 /net/bluetooth
parent5504c3a31061704512707bb23bd7835e8a5281e4 (diff)
Bluetooth: Fix wrong Get Clock Information return parameters
The address information of the Get Clock Information return parameters is copying from a different memory location. It uses &cmd->param while it actually needs to be cmd->param. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@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 469f5cc3109b..0c83dd36b7e3 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -4869,7 +4869,7 @@ static int clock_info_cmd_complete(struct mgmt_pending_cmd *cmd, u8 status)
4869 int err; 4869 int err;
4870 4870
4871 memset(&rp, 0, sizeof(rp)); 4871 memset(&rp, 0, sizeof(rp));
4872 memcpy(&rp.addr, &cmd->param, sizeof(rp.addr)); 4872 memcpy(&rp.addr, cmd->param, sizeof(rp.addr));
4873 4873
4874 if (status) 4874 if (status)
4875 goto complete; 4875 goto complete;