mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
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>
This commit is contained in:
parent
5504c3a310
commit
56f787c502
1 changed files with 1 additions and 1 deletions
|
@ -4869,7 +4869,7 @@ static int clock_info_cmd_complete(struct mgmt_pending_cmd *cmd, u8 status)
|
|||
int err;
|
||||
|
||||
memset(&rp, 0, sizeof(rp));
|
||||
memcpy(&rp.addr, &cmd->param, sizeof(rp.addr));
|
||||
memcpy(&rp.addr, cmd->param, sizeof(rp.addr));
|
||||
|
||||
if (status)
|
||||
goto complete;
|
||||
|
|
Loading…
Add table
Reference in a new issue