projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62acbbb
)
Bluetooth: btintel: Fix offset calculation boot address parameter
author
Kiran K
<kiran.k@intel.com>
Mon, 8 Mar 2021 13:16:01 +0000
(18:46 +0530)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 8 Mar 2021 15:48:05 +0000
(16:48 +0100)
Boot address parameter was not getting updated properly
due to wrong offset
Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btintel.c
patch
|
blob
|
history
diff --git
a/drivers/bluetooth/btintel.c
b/drivers/bluetooth/btintel.c
index
88ce5f0
..
fa97324
100644
(file)
--- a/
drivers/bluetooth/btintel.c
+++ b/
drivers/bluetooth/btintel.c
@@
-863,7
+863,8
@@
static int btintel_download_firmware_payload(struct hci_dev *hdev,
/* The boot parameter is the first 32-bit value
* and rest of 3 octets are reserved.
*/
- *boot_param = get_unaligned_le32(fw_ptr + sizeof(*cmd));
+ *boot_param = get_unaligned_le32(fw_ptr + frag_len +
+ sizeof(*cmd));
bt_dev_dbg(hdev, "boot_param=0x%x", *boot_param);
}