Skip to contentSkip to conversation

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

PATCH RESEND Superseded David Sterba 2 participants 2 messages Jan 14, 2011

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 Bluetooth: l2cap: fix misuse of logical operation in place of bitop

CC Marcel Holtmann <[email protected]>
CC "Gustavo F. Padovan" <[email protected]>
CC João Paulo Rechi Vita <[email protected]>

---

Andrew, this has not been picked up by maintainers since 27.12., please consider it for -mm.

 net/bluetooth/l2cap.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net/bluetooth/l2cap.c +2 -2
index cd8f6ea..bdfdfdc 100644
@@ -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;
 			}
Signature · 1 line
1.7.3.4.626.g73e7b
#1 lore raw

Hi all,

Quoted 10 lines · David Sterba
CC Marcel Holtmann <[email protected]>
CC "Gustavo F. Padovan" <[email protected]>
CC João Paulo Rechi Vita <[email protected]>

---

Andrew, this has not been picked up by maintainers since 27.12., please consider it for -mm.

 net/bluetooth/l2cap.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

I'm taking care of this. Sorry for the delay, I've been away a bit. Patch is now applied to Bluetooth tree. Thanks.

Signature · 2 lines
Gustavo F. Padovan
http://profusion.mobi