projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[SK_BUFF]: Introduce skb_reset_transport_header(skb)
[deliverable/linux.git]
/
net
/
bluetooth
/
hci_sock.c
diff --git
a/net/bluetooth/hci_sock.c
b/net/bluetooth/hci_sock.c
index f928d2b2a17dac5c81a7660108e895b5640a1263..832b5f44be5c2f483e5ec0b5c2b8e594447d2cd6 100644
(file)
--- a/
net/bluetooth/hci_sock.c
+++ b/
net/bluetooth/hci_sock.c
@@
-375,7
+375,7
@@
static int hci_sock_recvmsg(struct kiocb *iocb, struct socket *sock,
copied = len;
}
copied = len;
}
- skb
->h.raw = skb->data
;
+ skb
_reset_transport_header(skb)
;
err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied);
hci_sock_cmsg(sk, msg, skb);
err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied);
hci_sock_cmsg(sk, msg, skb);
@@
-656,7
+656,7
@@
static int hci_sock_dev_event(struct notifier_block *this, unsigned long event,
/* Detach sockets from device */
read_lock(&hci_sk_list.lock);
sk_for_each(sk, node, &hci_sk_list.head) {
/* Detach sockets from device */
read_lock(&hci_sk_list.lock);
sk_for_each(sk, node, &hci_sk_list.head) {
-
bh_
lock_sock(sk);
+ lock_sock(sk);
if (hci_pi(sk)->hdev == hdev) {
hci_pi(sk)->hdev = NULL;
sk->sk_err = EPIPE;
if (hci_pi(sk)->hdev == hdev) {
hci_pi(sk)->hdev = NULL;
sk->sk_err = EPIPE;
@@
-665,7
+665,7
@@
static int hci_sock_dev_event(struct notifier_block *this, unsigned long event,
hci_dev_put(hdev);
}
hci_dev_put(hdev);
}
-
bh_unlock
_sock(sk);
+
release
_sock(sk);
}
read_unlock(&hci_sk_list.lock);
}
}
read_unlock(&hci_sk_list.lock);
}
This page took
0.040537 seconds
and
5
git commands to generate.