Unverified Commit 5195c3d3 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!7516 [sync] PR-7483: Bluetooth: Fix use-after-free bugs caused by sco_sock_timeout

parents 552c072d 692aa698
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -83,6 +83,10 @@ static void sco_sock_timeout(struct work_struct *work)
	struct sock *sk;

	sco_conn_lock(conn);
	if (!conn->hcon) {
		sco_conn_unlock(conn);
		return;
	}
	sk = conn->sk;
	if (sk)
		sock_hold(sk);