Unverified Commit 0342dc44 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!5376 Bluetooth: rfcomm: Fix null-ptr-deref in rfcomm_check_security

parents 6e35fafe e50ff347
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1941,7 +1941,7 @@ static struct rfcomm_session *rfcomm_process_rx(struct rfcomm_session *s)
	/* Get data directly from socket receive queue without copying it. */
	while ((skb = skb_dequeue(&sk->sk_receive_queue))) {
		skb_orphan(skb);
		if (!skb_linearize(skb)) {
		if (!skb_linearize(skb) && sk->sk_state != BT_CLOSED) {
			s = rfcomm_recv_frame(s, skb);
			if (!s)
				break;