projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f930a7a
)
compat: Use COMPAT_USE_64BIT_TIME in the Bluetooth subsystem
author
H. J. Lu
<
[email protected]
>
Fri, 10 Feb 2012 22:12:15 +0000
(14:12 -0800)
committer
H. Peter Anvin
<
[email protected]
>
Mon, 20 Feb 2012 20:48:47 +0000
(12:48 -0800)
Enable the Bluetooth subsystem to be used with a compat ABI with
64-bit time.
Signed-off-by: H. Peter Anvin <
[email protected]
>
Cc: Marcel Holtmann <
[email protected]
>
Cc: Gustavo F. Padovan <
[email protected]
>
Cc: David S. Miller <
[email protected]
>
net/bluetooth/hci_sock.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/hci_sock.c
b/net/bluetooth/hci_sock.c
index 0dcc9626677973d23708b53c7716a126adea107f..b2eb2b93580ff56ed8d4898e8501c24451f66786 100644
(file)
--- a/
net/bluetooth/hci_sock.c
+++ b/
net/bluetooth/hci_sock.c
@@
-418,7
+418,8
@@
static inline void hci_sock_cmsg(struct sock *sk, struct msghdr *msg, struct sk_
data = &tv;
len = sizeof(tv);
#ifdef CONFIG_COMPAT
- if (msg->msg_flags & MSG_CMSG_COMPAT) {
+ if (!COMPAT_USE_64BIT_TIME &&
+ (msg->msg_flags & MSG_CMSG_COMPAT)) {
ctv.tv_sec = tv.tv_sec;
ctv.tv_usec = tv.tv_usec;
data = &ctv;