Bluetooth: Fix wrong Get Clock Information return parameters
Subsystems (2)
Marcel Holtmann
maintainerPATCH 2/2 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 <[email protected]>
--- net/bluetooth/mgmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/bluetooth/mgmt.c +1 -1
@@ -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;
Signature · 1 line
2.7.4