diff options
author | Matthias Kaehlcke <mka@chromium.org> | 2019-07-08 23:57:42 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2019-08-12 18:23:50 +0200 |
commit | 2fde6afb8c7fce8e679c1072891cd31d54af5b83 (patch) | |
tree | c45330d0c1a81eb6c655c86cbdd2bfac094d0dd1 /drivers/bluetooth | |
parent | Bluetooth: hci_qca: Use kfree_skb() instead of kfree() (diff) | |
download | linux-2fde6afb8c7fce8e679c1072891cd31d54af5b83.tar.xz linux-2fde6afb8c7fce8e679c1072891cd31d54af5b83.zip |
Bluetooth: btqca: Use correct byte format for opcode of injected command
The opcode of the command injected by commit 32646db8cc28 ("Bluetooth:
btqca: inject command complete event during fw download") uses the CPU
byte format, however it should always be little endian. In practice it
shouldn't really matter, since all we need is an opcode != 0, but still
let's do things correctly and keep sparse happy.
Fixes: 32646db8cc28 ("Bluetooth: btqca: inject command complete event during fw download")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/btqca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c index c59ca5782b63..81a5c45bdcd9 100644 --- a/drivers/bluetooth/btqca.c +++ b/drivers/bluetooth/btqca.c @@ -268,7 +268,7 @@ static int qca_inject_cmd_complete_event(struct hci_dev *hdev) evt = skb_put(skb, sizeof(*evt)); evt->ncmd = 1; - evt->opcode = QCA_HCI_CC_OPCODE; + evt->opcode = cpu_to_le16(QCA_HCI_CC_OPCODE); skb_put_u8(skb, QCA_HCI_CC_SUCCESS); |