mirror of https://github.com/ipxe/ipxe.git
[w89c840] Avoid potential array overrun
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/58/merge
parent
ad725fa7d9
commit
99e1207a4d
|
@ -247,7 +247,7 @@ static struct winbond_private
|
||||||
/* MII transceiver section. */
|
/* MII transceiver section. */
|
||||||
int mii_cnt; /* MII device addresses. */
|
int mii_cnt; /* MII device addresses. */
|
||||||
u16 advertising; /* NWay media advertisement */
|
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)));
|
} w840private __attribute__ ((aligned (PRIV_ALIGN_BYTES)));
|
||||||
|
|
||||||
/* NIC specific static variables go here */
|
/* NIC specific static variables go here */
|
||||||
|
|
Loading…
Reference in New Issue