diff options
author | Jaganath Kanakkassery <jaganath.k.os@gmail.com> | 2019-04-03 08:41:44 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2019-04-23 19:23:20 +0200 |
commit | cd9151b618da4723877bd94eae952f2e50acbc0e (patch) | |
tree | 6fb063730b5e9fd887342d11e6cc8c6f8150d67b /net/bluetooth | |
parent | Bluetooth: btbcm: Add entry for BCM2076B1 UART Bluetooth (diff) | |
download | linux-cd9151b618da4723877bd94eae952f2e50acbc0e.tar.xz linux-cd9151b618da4723877bd94eae952f2e50acbc0e.zip |
Bluetooth: Fix incorrect pointer arithmatic in ext_adv_report_evt
In ext_adv_report_event rssi comes before data (not after data as
in legacy adv_report_evt) so "+ 1" is not required in the ptr arithmatic
to point to next report.
Signed-off-by: Jaganath Kanakkassery <jaganath.kanakkassery@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/hci_event.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 609fd6871c5a..66b631ab0d35 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -5433,7 +5433,7 @@ static void hci_le_ext_adv_report_evt(struct hci_dev *hdev, struct sk_buff *skb) ev->data, ev->length); } - ptr += sizeof(*ev) + ev->length + 1; + ptr += sizeof(*ev) + ev->length; } hci_dev_unlock(hdev); |