projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net: Add and use skb_copy_datagram_msg() helper.
[deliverable/linux.git]
/
net
/
bluetooth
/
af_bluetooth.c
diff --git
a/net/bluetooth/af_bluetooth.c
b/net/bluetooth/af_bluetooth.c
index 339c74ad45538f931ee1c31edb96c3f3f3298074..0a7cc565f93e0ba73ffbe0e93e7b82854134f595 100644
(file)
--- a/
net/bluetooth/af_bluetooth.c
+++ b/
net/bluetooth/af_bluetooth.c
@@
-237,7
+237,7
@@
int bt_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
}
skb_reset_transport_header(skb);
}
skb_reset_transport_header(skb);
- err = skb_copy_datagram_
iovec(skb, 0, msg->msg_iov
, copied);
+ err = skb_copy_datagram_
msg(skb, 0, msg
, copied);
if (err == 0) {
sock_recv_ts_and_drops(msg, sk, skb);
if (err == 0) {
sock_recv_ts_and_drops(msg, sk, skb);
@@
-328,7
+328,7
@@
int bt_sock_stream_recvmsg(struct kiocb *iocb, struct socket *sock,
}
chunk = min_t(unsigned int, skb->len, size);
}
chunk = min_t(unsigned int, skb->len, size);
- if (skb_copy_datagram_
iovec(skb, 0, msg->msg_iov
, chunk)) {
+ if (skb_copy_datagram_
msg(skb, 0, msg
, chunk)) {
skb_queue_head(&sk->sk_receive_queue, skb);
if (!copied)
copied = -EFAULT;
skb_queue_head(&sk->sk_receive_queue, skb);
if (!copied)
copied = -EFAULT;
This page took
0.029919 seconds
and
5
git commands to generate.