summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorGavin Li <gavin@matician.com>2022-03-15 01:42:52 +0300
committerMarcel Holtmann <marcel@holtmann.org>2022-03-18 19:12:08 +0300
commitda8912176fb0ff9fd60e14fa653108d96422b896 (patch)
tree77a391739c2267fe7c9cd62eb90f15a7e4b60dbc /include/net
parent1f667e157605a217f10fc45f1a7fb4a8354eb5e3 (diff)
downloadlinux-da8912176fb0ff9fd60e14fa653108d96422b896.tar.xz
Bluetooth: fix incorrect nonblock bitmask in bt_sock_wait_ready()
Callers pass msg->msg_flags as flags, which contains MSG_DONTWAIT instead of O_NONBLOCK. Signed-off-by: Gavin Li <gavin@matician.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/bluetooth/bluetooth.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h
index 2aa5e95808a5..6b48d9e2aab9 100644
--- a/include/net/bluetooth/bluetooth.h
+++ b/include/net/bluetooth/bluetooth.h
@@ -345,7 +345,7 @@ int bt_sock_stream_recvmsg(struct socket *sock, struct msghdr *msg,
__poll_t bt_sock_poll(struct file *file, struct socket *sock, poll_table *wait);
int bt_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg);
int bt_sock_wait_state(struct sock *sk, int state, unsigned long timeo);
-int bt_sock_wait_ready(struct sock *sk, unsigned long flags);
+int bt_sock_wait_ready(struct sock *sk, unsigned int msg_flags);
void bt_accept_enqueue(struct sock *parent, struct sock *sk, bool bh);
void bt_accept_unlink(struct sock *sk);