Skip to content

Commit

Permalink
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Browse files Browse the repository at this point in the history
* master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
  [BLUETOOTH]: Fix non-COMPAT build of hci_sock.c
  • Loading branch information
Linus Torvalds committed Sep 12, 2007
2 parents 040a2b6 + 1da97f8 commit 0bc73c2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions net/bluetooth/hci_sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0bc73c2

Please sign in to comment.