提交 4571928f 编写于 作者: D David Sterba 提交者: 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: NDavid Sterba <dsterba@suse.cz>
Signed-off-by: NGustavo F. Padovan <padovan@profusion.mobi>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册