From: Marcel Holtmann Date: Mon, 29 Aug 2016 04:19:47 +0000 (+0200) Subject: Bluetooth: Fix wrong Get Clock Information return parameters X-Git-Tag: v5.15~12760^2~128^2~37 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56f787c5024de7829f8cccce7569feb520829baf;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Johan Hedberg --- diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 469f5cc..0c83dd3 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) 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;