Commit 4571928f authored by David Sterba's avatar David Sterba Committed by Gustavo F. Padovan

Bluetooth: l2cap: fix misuse of logical operation in place of bitop

CC: Marcel Holtmann <marcel@holtmann.org>
CC: "Gustavo F. Padovan" <padovan@profusion.mobi>
CC: João Paulo Rechi Vita <jprvita@profusion.mobi>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.cz>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 86e09287
...@@ -1893,8 +1893,8 @@ static int l2cap_sock_sendmsg(struct kiocb *iocb, struct socket *sock, struct ms ...@@ -1893,8 +1893,8 @@ static int l2cap_sock_sendmsg(struct kiocb *iocb, struct socket *sock, struct ms
if (pi->mode == L2CAP_MODE_STREAMING) { if (pi->mode == L2CAP_MODE_STREAMING) {
l2cap_streaming_send(sk); l2cap_streaming_send(sk);
} else { } else {
if (pi->conn_state & L2CAP_CONN_REMOTE_BUSY && if ((pi->conn_state & L2CAP_CONN_REMOTE_BUSY) &&
pi->conn_state && L2CAP_CONN_WAIT_F) { (pi->conn_state & L2CAP_CONN_WAIT_F)) {
err = len; err = len;
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment