projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
039287a
)
Bluetooth: Fix incorrect pointer arithmatic in ext_adv_report_evt
author
Jaganath Kanakkassery
<jaganath.k.os@gmail.com>
Wed, 3 Apr 2019 06:41:44 +0000
(12:11 +0530)
committer
Marcel Holtmann
<marcel@holtmann.org>
Tue, 23 Apr 2019 17:23:20 +0000
(19:23 +0200)
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>
net/bluetooth/hci_event.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/hci_event.c
b/net/bluetooth/hci_event.c
index
609fd68
..
66b631a
100644
(file)
--- 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);