diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-04-04 23:59:40 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-04-07 12:47:09 -0400 |
commit | 5c7d2dd2852c7cd8f07cf91291b351c01b781044 (patch) | |
tree | 6539a1910d4dee4ab5abbdc142be313783c2cdf8 /net | |
parent | 940cbe3a6b2282551e2e458d307967ae37cbba18 (diff) |
Bluetooth: Make data pointer of hci_recv_stream_fragment const
The data pointer provided to hci_recv_stream_fragment function should
have been marked const. The function has no business in modifying the
original data. So fix this now.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/bluetooth/hci_core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index 46b114c0140b..c9e7cafb245a 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c | |||
@@ -3320,7 +3320,7 @@ int hci_recv_frame(struct hci_dev *hdev, struct sk_buff *skb) | |||
3320 | } | 3320 | } |
3321 | EXPORT_SYMBOL(hci_recv_frame); | 3321 | EXPORT_SYMBOL(hci_recv_frame); |
3322 | 3322 | ||
3323 | static int hci_reassembly(struct hci_dev *hdev, int type, void *data, | 3323 | static int hci_reassembly(struct hci_dev *hdev, int type, const void *data, |
3324 | int count, __u8 index) | 3324 | int count, __u8 index) |
3325 | { | 3325 | { |
3326 | int len = 0; | 3326 | int len = 0; |
@@ -3430,7 +3430,7 @@ static int hci_reassembly(struct hci_dev *hdev, int type, void *data, | |||
3430 | 3430 | ||
3431 | #define STREAM_REASSEMBLY 0 | 3431 | #define STREAM_REASSEMBLY 0 |
3432 | 3432 | ||
3433 | int hci_recv_stream_fragment(struct hci_dev *hdev, void *data, int count) | 3433 | int hci_recv_stream_fragment(struct hci_dev *hdev, const void *data, int count) |
3434 | { | 3434 | { |
3435 | int type; | 3435 | int type; |
3436 | int rem = 0; | 3436 | int rem = 0; |
@@ -3439,7 +3439,7 @@ int hci_recv_stream_fragment(struct hci_dev *hdev, void *data, int count) | |||
3439 | struct sk_buff *skb = hdev->reassembly[STREAM_REASSEMBLY]; | 3439 | struct sk_buff *skb = hdev->reassembly[STREAM_REASSEMBLY]; |
3440 | 3440 | ||
3441 | if (!skb) { | 3441 | if (!skb) { |
3442 | struct { char type; } *pkt; | 3442 | const struct { char type; } *pkt; |
3443 | 3443 | ||
3444 | /* Start of the frame */ | 3444 | /* Start of the frame */ |
3445 | pkt = data; | 3445 | pkt = data; |