projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
577107e
)
[BLUETOOTH]: Fix non-COMPAT build of hci_sock.c
author
David S. Miller
<davem@kimchee.(none)>
Wed, 12 Sep 2007 12:10:58 +0000
(14:10 +0200)
committer
David S. Miller
<davem@kimchee.(none)>
Wed, 12 Sep 2007 12:10:58 +0000
(14:10 +0200)
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bluetooth/hci_sock.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/hci_sock.c
b/net/bluetooth/hci_sock.c
index d16ca8e537007aafd2d4be110d583f250a791182..5ccea5fbd2363e3ab1780c39d18f68508432ff0b 100644
(file)
--- a/
net/bluetooth/hci_sock.c
+++ b/
net/bluetooth/hci_sock.c
@@
-348,16
+348,17
@@
static inline void hci_sock_cmsg(struct sock *sk, struct msghdr *msg, struct sk_
skb_get_timestamp(skb, &tv);
+ data = &tv;
+ len = sizeof(tv);
+#ifdef CONFIG_COMPAT
if (msg->msg_flags & MSG_CMSG_COMPAT) {
struct compat_timeval ctv;
ctv.tv_sec = tv.tv_sec;
ctv.tv_usec = tv.tv_usec;
data = &ctv;
len = sizeof(ctv);
- } else {
- data = &tv;
- len = sizeof(tv);
}
+#endif
put_cmsg(msg, SOL_HCI, HCI_CMSG_TSTAMP, len, data);
}