|
@@ -1,6 +1,6 @@
|
|
/*
|
|
/*
|
|
* Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
|
|
* Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
|
|
- * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
|
|
|
+ * Copyright (c) 2022-2024 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -1206,7 +1206,9 @@ static void get_htc_send_packets_credit_based(HTC_TARGET *target,
|
|
HTC_PACKET_QUEUE_DEPTH(pQueue)));
|
|
HTC_PACKET_QUEUE_DEPTH(pQueue)));
|
|
|
|
|
|
pPacket = htc_get_pkt_at_head(tx_queue);
|
|
pPacket = htc_get_pkt_at_head(tx_queue);
|
|
- if (!pPacket)
|
|
|
|
|
|
+ if (!pPacket ||
|
|
|
|
+ (pPacket->Endpoint >= ENDPOINT_MAX) ||
|
|
|
|
+ (pPacket->Endpoint <= ENDPOINT_UNUSED))
|
|
break;
|
|
break;
|
|
log_packet_info(target, pPacket);
|
|
log_packet_info(target, pPacket);
|
|
break;
|
|
break;
|
|
@@ -1370,7 +1372,9 @@ static void get_htc_send_packets(HTC_TARGET *target,
|
|
/* bus suspended, runtime resume issued */
|
|
/* bus suspended, runtime resume issued */
|
|
QDF_ASSERT(HTC_PACKET_QUEUE_DEPTH(pQueue) == 0);
|
|
QDF_ASSERT(HTC_PACKET_QUEUE_DEPTH(pQueue) == 0);
|
|
pPacket = htc_get_pkt_at_head(tx_queue);
|
|
pPacket = htc_get_pkt_at_head(tx_queue);
|
|
- if (!pPacket)
|
|
|
|
|
|
+ if (!pPacket ||
|
|
|
|
+ (pPacket->Endpoint >= ENDPOINT_MAX) ||
|
|
|
|
+ (pPacket->Endpoint <= ENDPOINT_UNUSED))
|
|
break;
|
|
break;
|
|
log_packet_info(target, pPacket);
|
|
log_packet_info(target, pPacket);
|
|
break;
|
|
break;
|