diff options
Diffstat (limited to 'net/bluetooth/hci_request.c')
| -rw-r--r-- | net/bluetooth/hci_request.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/net/bluetooth/hci_request.c b/net/bluetooth/hci_request.c index b5faff458d8b..b73ac149de34 100644 --- a/net/bluetooth/hci_request.c +++ b/net/bluetooth/hci_request.c @@ -299,12 +299,12 @@ struct sk_buff *hci_prepare_cmd(struct hci_dev *hdev, u16 opcode, u32 plen,  	if (!skb)  		return NULL; -	hdr = (struct hci_command_hdr *) skb_put(skb, HCI_COMMAND_HDR_SIZE); +	hdr = skb_put(skb, HCI_COMMAND_HDR_SIZE);  	hdr->opcode = cpu_to_le16(opcode);  	hdr->plen   = plen;  	if (plen) -		memcpy(skb_put(skb, plen), param, plen); +		skb_put_data(skb, param, plen);  	BT_DBG("skb len %d", skb->len); |