Skip to content

Commit e694928

Browse files
Mat MartineauGustavo F. Padovan
authored andcommitted
Bluetooth: Fix check for the ERTM local busy state
Local busy is encoded in a bitfield, but was not masked out correctly. Signed-off-by: Mat Martineau <mathewm@codeaurora.org> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
1 parent d8d69c5 commit e694928

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/bluetooth/l2cap_core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3540,7 +3540,7 @@ static inline int l2cap_data_channel_iframe(struct l2cap_chan *chan, u16 rx_cont
35403540
goto drop;
35413541
}
35423542

3543-
if (chan->conn_state == L2CAP_CONN_LOCAL_BUSY)
3543+
if (chan->conn_state & L2CAP_CONN_LOCAL_BUSY)
35443544
goto drop;
35453545

35463546
if (chan->conn_state & L2CAP_CONN_SREJ_SENT) {

0 commit comments

Comments
 (0)