diff options
| author | Colin Ian King <[email protected]> | 2025-06-19 08:20:10 +0000 |
|---|---|---|
| committer | Jeff Johnson <[email protected]> | 2025-06-26 23:10:45 +0000 |
| commit | d8f07889e920493845fd628407ff0debbe96fa09 (patch) | |
| tree | 9ba7c9898f92e02e8d397cbdb69197a5e5e7f561 | |
| parent | wifi: ath11k: fix suspend use-after-free after probe failure (diff) | |
| download | kernel-d8f07889e920493845fd628407ff0debbe96fa09.tar.gz kernel-d8f07889e920493845fd628407ff0debbe96fa09.zip | |
wifi: ath11k: Make read-only const array svc_id static const
Don't populate the read-only array svc_id on the stack at run time,
instead make it static const.
Signed-off-by: Colin Ian King <[email protected]>
Reviewed-by: Vasanthakumar Thiagarajan <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jeff Johnson <[email protected]>
| -rw-r--r-- | drivers/net/wireless/ath/ath11k/htc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath11k/htc.c b/drivers/net/wireless/ath/ath11k/htc.c index 23054ab29a5e..4571d01cc33d 100644 --- a/drivers/net/wireless/ath/ath11k/htc.c +++ b/drivers/net/wireless/ath/ath11k/htc.c @@ -497,7 +497,7 @@ static u8 ath11k_htc_get_credit_allocation(struct ath11k_htc *htc, static int ath11k_htc_setup_target_buffer_assignments(struct ath11k_htc *htc) { struct ath11k_htc_svc_tx_credits *serv_entry; - u32 svc_id[] = { + static const u32 svc_id[] = { ATH11K_HTC_SVC_ID_WMI_CONTROL, ATH11K_HTC_SVC_ID_WMI_CONTROL_MAC1, ATH11K_HTC_SVC_ID_WMI_CONTROL_MAC2, |
