mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[BLUETOOTH]: Fix non-COMPAT build of hci_sock.c
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
577107e8e4
commit
1da97f83a8
1 changed files with 4 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue