git: 8b45e0c18011 - main - malo: Fix mismatch in array bounds.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 07 Dec 2022 20:34:11 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=8b45e0c180114e1059767d0920ad6e6bfdeb37ce
commit 8b45e0c180114e1059767d0920ad6e6bfdeb37ce
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2022-12-07 20:31:16 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-12-07 20:31:16 +0000
malo: Fix mismatch in array bounds.
Reported by: GCC -Warray-parameter
Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D37544
---
sys/dev/malo/if_malohal.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/dev/malo/if_malohal.h b/sys/dev/malo/if_malohal.h
index 8322f18ef739..6a68a41afea9 100644
--- a/sys/dev/malo/if_malohal.h
+++ b/sys/dev/malo/if_malohal.h
@@ -223,7 +223,7 @@ int malo_hal_setmaxtxpwr(struct malo_hal *, uint16_t);
int malo_hal_settxpower(struct malo_hal *, const struct malo_hal_channel *);
int malo_hal_setpromisc(struct malo_hal *, int);
int malo_hal_setassocid(struct malo_hal *,
- const uint8_t[], uint16_t);
+ const uint8_t[IEEE80211_ADDR_LEN], uint16_t);
void malo_hal_txstart(struct malo_hal *, int);
void malo_hal_getisr(struct malo_hal *, uint32_t *);
void malo_hal_cmddone(struct malo_hal *);