diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-27 12:26:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-04-27 12:26:46 -0400 |
commit | 15c54033964a943de7b0763efd3bd0ede7326395 (patch) | |
tree | 840b292612d1b5396d5bab5bde537a9013db3ceb /drivers/bluetooth | |
parent | ad5da3cf39a5b11a198929be1f2644e17ecd767e (diff) | |
parent | 912a41a4ab935ce8c4308428ec13fc7f8b1f18f4 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6: (448 commits)
[IPV4] nl_fib_lookup: Initialise res.r before fib_res_put(&res)
[IPV6]: Fix thinko in ipv6_rthdr_rcv() changes.
[IPV4]: Add multipath cached to feature-removal-schedule.txt
[WIRELESS] cfg80211: Clarify locking comment.
[WIRELESS] cfg80211: Fix locking in wiphy_new.
[WEXT] net_device: Don't include wext bits if not required.
[WEXT]: Misc code cleanups.
[WEXT]: Reduce inline abuse.
[WEXT]: Move EXPORT_SYMBOL statements where they belong.
[WEXT]: Cleanup early ioctl call path.
[WEXT]: Remove options.
[WEXT]: Remove dead debug code.
[WEXT]: Clean up how wext is called.
[WEXT]: Move to net/wireless
[AFS]: Eliminate cmpxchg() usage in vlocation code.
[RXRPC]: Fix pointers passed to bitops.
[RXRPC]: Remove bogus atomic_* overrides.
[AFS]: Fix u64 printing in debug logging.
[AFS]: Add "directory write" support.
[AFS]: Implement the CB.InitCallBackState3 operation.
...
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/bfusb.c | 2 | ||||
-rw-r--r-- | drivers/bluetooth/bluecard_cs.c | 6 | ||||
-rw-r--r-- | drivers/bluetooth/bpa10x.c | 4 | ||||
-rw-r--r-- | drivers/bluetooth/bt3c_cs.c | 6 | ||||
-rw-r--r-- | drivers/bluetooth/btuart_cs.c | 6 | ||||
-rw-r--r-- | drivers/bluetooth/dtl1_cs.c | 2 | ||||
-rw-r--r-- | drivers/bluetooth/hci_h4.c | 6 |
7 files changed, 16 insertions, 16 deletions
diff --git a/drivers/bluetooth/bfusb.c b/drivers/bluetooth/bfusb.c index 4c766f36d884..b990805806af 100644 --- a/drivers/bluetooth/bfusb.c +++ b/drivers/bluetooth/bfusb.c | |||
@@ -527,7 +527,7 @@ static int bfusb_send_frame(struct sk_buff *skb) | |||
527 | buf[2] = (size == BFUSB_MAX_BLOCK_SIZE) ? 0 : size; | 527 | buf[2] = (size == BFUSB_MAX_BLOCK_SIZE) ? 0 : size; |
528 | 528 | ||
529 | memcpy(skb_put(nskb, 3), buf, 3); | 529 | memcpy(skb_put(nskb, 3), buf, 3); |
530 | memcpy(skb_put(nskb, size), skb->data + sent, size); | 530 | skb_copy_from_linear_data_offset(skb, sent, skb_put(nskb, size), size); |
531 | 531 | ||
532 | sent += size; | 532 | sent += size; |
533 | count -= size; | 533 | count -= size; |
diff --git a/drivers/bluetooth/bluecard_cs.c b/drivers/bluetooth/bluecard_cs.c index acfb6a430dcc..851de4d5b7de 100644 --- a/drivers/bluetooth/bluecard_cs.c +++ b/drivers/bluetooth/bluecard_cs.c | |||
@@ -461,20 +461,20 @@ static void bluecard_receive(bluecard_info_t *info, unsigned int offset) | |||
461 | switch (info->rx_state) { | 461 | switch (info->rx_state) { |
462 | 462 | ||
463 | case RECV_WAIT_EVENT_HEADER: | 463 | case RECV_WAIT_EVENT_HEADER: |
464 | eh = (struct hci_event_hdr *)(info->rx_skb->data); | 464 | eh = hci_event_hdr(info->rx_skb); |
465 | info->rx_state = RECV_WAIT_DATA; | 465 | info->rx_state = RECV_WAIT_DATA; |
466 | info->rx_count = eh->plen; | 466 | info->rx_count = eh->plen; |
467 | break; | 467 | break; |
468 | 468 | ||
469 | case RECV_WAIT_ACL_HEADER: | 469 | case RECV_WAIT_ACL_HEADER: |
470 | ah = (struct hci_acl_hdr *)(info->rx_skb->data); | 470 | ah = hci_acl_hdr(info->rx_skb); |
471 | dlen = __le16_to_cpu(ah->dlen); | 471 | dlen = __le16_to_cpu(ah->dlen); |
472 | info->rx_state = RECV_WAIT_DATA; | 472 | info->rx_state = RECV_WAIT_DATA; |
473 | info->rx_count = dlen; | 473 | info->rx_count = dlen; |
474 | break; | 474 | break; |
475 | 475 | ||
476 | case RECV_WAIT_SCO_HEADER: | 476 | case RECV_WAIT_SCO_HEADER: |
477 | sh = (struct hci_sco_hdr *)(info->rx_skb->data); | 477 | sh = hci_sco_hdr(info->rx_skb); |
478 | info->rx_state = RECV_WAIT_DATA; | 478 | info->rx_state = RECV_WAIT_DATA; |
479 | info->rx_count = sh->dlen; | 479 | info->rx_count = sh->dlen; |
480 | break; | 480 | break; |
diff --git a/drivers/bluetooth/bpa10x.c b/drivers/bluetooth/bpa10x.c index 9fca6513562d..e8ebd5d3de86 100644 --- a/drivers/bluetooth/bpa10x.c +++ b/drivers/bluetooth/bpa10x.c | |||
@@ -231,7 +231,7 @@ static void bpa10x_wakeup(struct bpa10x_data *data) | |||
231 | cr = (struct usb_ctrlrequest *) urb->setup_packet; | 231 | cr = (struct usb_ctrlrequest *) urb->setup_packet; |
232 | cr->wLength = __cpu_to_le16(skb->len); | 232 | cr->wLength = __cpu_to_le16(skb->len); |
233 | 233 | ||
234 | memcpy(urb->transfer_buffer, skb->data, skb->len); | 234 | skb_copy_from_linear_data(skb, urb->transfer_buffer, skb->len); |
235 | urb->transfer_buffer_length = skb->len; | 235 | urb->transfer_buffer_length = skb->len; |
236 | 236 | ||
237 | err = usb_submit_urb(urb, GFP_ATOMIC); | 237 | err = usb_submit_urb(urb, GFP_ATOMIC); |
@@ -250,7 +250,7 @@ static void bpa10x_wakeup(struct bpa10x_data *data) | |||
250 | skb = skb_dequeue(&data->tx_queue); | 250 | skb = skb_dequeue(&data->tx_queue); |
251 | 251 | ||
252 | if (skb) { | 252 | if (skb) { |
253 | memcpy(urb->transfer_buffer, skb->data, skb->len); | 253 | skb_copy_from_linear_data(skb, urb->transfer_buffer, skb->len); |
254 | urb->transfer_buffer_length = skb->len; | 254 | urb->transfer_buffer_length = skb->len; |
255 | 255 | ||
256 | err = usb_submit_urb(urb, GFP_ATOMIC); | 256 | err = usb_submit_urb(urb, GFP_ATOMIC); |
diff --git a/drivers/bluetooth/bt3c_cs.c b/drivers/bluetooth/bt3c_cs.c index 18b0f3992c5b..39516074636b 100644 --- a/drivers/bluetooth/bt3c_cs.c +++ b/drivers/bluetooth/bt3c_cs.c | |||
@@ -303,20 +303,20 @@ static void bt3c_receive(bt3c_info_t *info) | |||
303 | switch (info->rx_state) { | 303 | switch (info->rx_state) { |
304 | 304 | ||
305 | case RECV_WAIT_EVENT_HEADER: | 305 | case RECV_WAIT_EVENT_HEADER: |
306 | eh = (struct hci_event_hdr *)(info->rx_skb->data); | 306 | eh = hci_event_hdr(info->rx_skb); |
307 | info->rx_state = RECV_WAIT_DATA; | 307 | info->rx_state = RECV_WAIT_DATA; |
308 | info->rx_count = eh->plen; | 308 | info->rx_count = eh->plen; |
309 | break; | 309 | break; |
310 | 310 | ||
311 | case RECV_WAIT_ACL_HEADER: | 311 | case RECV_WAIT_ACL_HEADER: |
312 | ah = (struct hci_acl_hdr *)(info->rx_skb->data); | 312 | ah = hci_acl_hdr(info->rx_skb); |
313 | dlen = __le16_to_cpu(ah->dlen); | 313 | dlen = __le16_to_cpu(ah->dlen); |
314 | info->rx_state = RECV_WAIT_DATA; | 314 | info->rx_state = RECV_WAIT_DATA; |
315 | info->rx_count = dlen; | 315 | info->rx_count = dlen; |
316 | break; | 316 | break; |
317 | 317 | ||
318 | case RECV_WAIT_SCO_HEADER: | 318 | case RECV_WAIT_SCO_HEADER: |
319 | sh = (struct hci_sco_hdr *)(info->rx_skb->data); | 319 | sh = hci_sco_hdr(info->rx_skb); |
320 | info->rx_state = RECV_WAIT_DATA; | 320 | info->rx_state = RECV_WAIT_DATA; |
321 | info->rx_count = sh->dlen; | 321 | info->rx_count = sh->dlen; |
322 | break; | 322 | break; |
diff --git a/drivers/bluetooth/btuart_cs.c b/drivers/bluetooth/btuart_cs.c index c1bce75148fe..d7d2ea0d86a1 100644 --- a/drivers/bluetooth/btuart_cs.c +++ b/drivers/bluetooth/btuart_cs.c | |||
@@ -250,20 +250,20 @@ static void btuart_receive(btuart_info_t *info) | |||
250 | switch (info->rx_state) { | 250 | switch (info->rx_state) { |
251 | 251 | ||
252 | case RECV_WAIT_EVENT_HEADER: | 252 | case RECV_WAIT_EVENT_HEADER: |
253 | eh = (struct hci_event_hdr *)(info->rx_skb->data); | 253 | eh = hci_event_hdr(info->rx_skb); |
254 | info->rx_state = RECV_WAIT_DATA; | 254 | info->rx_state = RECV_WAIT_DATA; |
255 | info->rx_count = eh->plen; | 255 | info->rx_count = eh->plen; |
256 | break; | 256 | break; |
257 | 257 | ||
258 | case RECV_WAIT_ACL_HEADER: | 258 | case RECV_WAIT_ACL_HEADER: |
259 | ah = (struct hci_acl_hdr *)(info->rx_skb->data); | 259 | ah = hci_acl_hdr(info->rx_skb); |
260 | dlen = __le16_to_cpu(ah->dlen); | 260 | dlen = __le16_to_cpu(ah->dlen); |
261 | info->rx_state = RECV_WAIT_DATA; | 261 | info->rx_state = RECV_WAIT_DATA; |
262 | info->rx_count = dlen; | 262 | info->rx_count = dlen; |
263 | break; | 263 | break; |
264 | 264 | ||
265 | case RECV_WAIT_SCO_HEADER: | 265 | case RECV_WAIT_SCO_HEADER: |
266 | sh = (struct hci_sco_hdr *)(info->rx_skb->data); | 266 | sh = hci_sco_hdr(info->rx_skb); |
267 | info->rx_state = RECV_WAIT_DATA; | 267 | info->rx_state = RECV_WAIT_DATA; |
268 | info->rx_count = sh->dlen; | 268 | info->rx_count = sh->dlen; |
269 | break; | 269 | break; |
diff --git a/drivers/bluetooth/dtl1_cs.c b/drivers/bluetooth/dtl1_cs.c index 459aa97937ab..7f9c54b9964a 100644 --- a/drivers/bluetooth/dtl1_cs.c +++ b/drivers/bluetooth/dtl1_cs.c | |||
@@ -425,7 +425,7 @@ static int dtl1_hci_send_frame(struct sk_buff *skb) | |||
425 | return -ENOMEM; | 425 | return -ENOMEM; |
426 | 426 | ||
427 | skb_reserve(s, NSHL); | 427 | skb_reserve(s, NSHL); |
428 | memcpy(skb_put(s, skb->len), skb->data, skb->len); | 428 | skb_copy_from_linear_data(skb, skb_put(s, skb->len), skb->len); |
429 | if (skb->len & 0x0001) | 429 | if (skb->len & 0x0001) |
430 | *skb_put(s, 1) = 0; /* PAD */ | 430 | *skb_put(s, 1) = 0; /* PAD */ |
431 | 431 | ||
diff --git a/drivers/bluetooth/hci_h4.c b/drivers/bluetooth/hci_h4.c index 34f0afc42407..bfbae14cf93d 100644 --- a/drivers/bluetooth/hci_h4.c +++ b/drivers/bluetooth/hci_h4.c | |||
@@ -188,7 +188,7 @@ static int h4_recv(struct hci_uart *hu, void *data, int count) | |||
188 | continue; | 188 | continue; |
189 | 189 | ||
190 | case H4_W4_EVENT_HDR: | 190 | case H4_W4_EVENT_HDR: |
191 | eh = (struct hci_event_hdr *) h4->rx_skb->data; | 191 | eh = hci_event_hdr(h4->rx_skb); |
192 | 192 | ||
193 | BT_DBG("Event header: evt 0x%2.2x plen %d", eh->evt, eh->plen); | 193 | BT_DBG("Event header: evt 0x%2.2x plen %d", eh->evt, eh->plen); |
194 | 194 | ||
@@ -196,7 +196,7 @@ static int h4_recv(struct hci_uart *hu, void *data, int count) | |||
196 | continue; | 196 | continue; |
197 | 197 | ||
198 | case H4_W4_ACL_HDR: | 198 | case H4_W4_ACL_HDR: |
199 | ah = (struct hci_acl_hdr *) h4->rx_skb->data; | 199 | ah = hci_acl_hdr(h4->rx_skb); |
200 | dlen = __le16_to_cpu(ah->dlen); | 200 | dlen = __le16_to_cpu(ah->dlen); |
201 | 201 | ||
202 | BT_DBG("ACL header: dlen %d", dlen); | 202 | BT_DBG("ACL header: dlen %d", dlen); |
@@ -205,7 +205,7 @@ static int h4_recv(struct hci_uart *hu, void *data, int count) | |||
205 | continue; | 205 | continue; |
206 | 206 | ||
207 | case H4_W4_SCO_HDR: | 207 | case H4_W4_SCO_HDR: |
208 | sh = (struct hci_sco_hdr *) h4->rx_skb->data; | 208 | sh = hci_sco_hdr(h4->rx_skb); |
209 | 209 | ||
210 | BT_DBG("SCO header: dlen %d", sh->dlen); | 210 | BT_DBG("SCO header: dlen %d", sh->dlen); |
211 | 211 | ||