Merge ath-next from ath.git
[firefly-linux-kernel-4.4.55.git] / net / bluetooth / amp.c
index 238ddd3cf95fb660d41f751821a09550f977f067..e32f34189007967e7674a501e2c944029623cfab 100644 (file)
@@ -379,7 +379,7 @@ static bool amp_write_rem_assoc_frag(struct hci_dev *hdev,
        amp_ctrl_put(ctrl);
 
        hci_req_init(&req, hdev);
-       hci_req_add(&req, HCI_OP_WRITE_REMOTE_AMP_ASSOC, sizeof(cp), &cp);
+       hci_req_add(&req, HCI_OP_WRITE_REMOTE_AMP_ASSOC, len, cp);
        hci_req_run_skb(&req, write_remote_amp_assoc_complete);
 
        kfree(cp);