Unverified Commit 1462349b authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15095 wifi: ath9k: add range check for conn_rsp_epid in htc_connect_service()

parents d87fcf95 aed978bd
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -294,6 +294,9 @@ int htc_connect_service(struct htc_target *target,
		return -ETIMEDOUT;
	}

	if (target->conn_rsp_epid < 0 || target->conn_rsp_epid >= ENDPOINT_MAX)
		return -EINVAL;

	*conn_rsp_epid = target->conn_rsp_epid;
	return 0;
err: