mirror of
https://github.com/ipxe/ipxe
synced 2025-12-08 02:10:25 +03:00
[w89c840] Avoid potential array overrun
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -247,7 +247,7 @@ static struct winbond_private
|
||||
/* MII transceiver section. */
|
||||
int mii_cnt; /* MII device addresses. */
|
||||
u16 advertising; /* NWay media advertisement */
|
||||
unsigned char phys[2]; /* MII device addresses. */
|
||||
unsigned char phys[4]; /* MII device addresses. */
|
||||
} w840private __attribute__ ((aligned (PRIV_ALIGN_BYTES)));
|
||||
|
||||
/* NIC specific static variables go here */
|
||||
|
||||
Reference in New Issue
Block a user