Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4571928f authored by David Sterba's avatar David Sterba Committed by Gustavo Padovan
Browse files

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1893,8 +1893,8 @@ static int l2cap_sock_sendmsg(struct kiocb *iocb, struct socket *sock, struct ms
		if (pi->mode == L2CAP_MODE_STREAMING) {
			l2cap_streaming_send(sk);
		} else {
			if (pi->conn_state & L2CAP_CONN_REMOTE_BUSY &&
					pi->conn_state && L2CAP_CONN_WAIT_F) {
			if ((pi->conn_state & L2CAP_CONN_REMOTE_BUSY) &&
					(pi->conn_state & L2CAP_CONN_WAIT_F)) {
				err = len;
				break;
			}