mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-25 14:56:03 +00:00
board/km/cent2: Fix buffer overflow when fixing MAC address
String "/soc/fman/ethernet@e8000" is 25 bytes long and not 24 due to extra byte for null character at the end. Signed-off-by: Francois Berder <fberder@outlook.fr>
This commit is contained in:
parent
6da11cc81e
commit
e483a7c8ff
1 changed files with 1 additions and 1 deletions
|
@ -292,7 +292,7 @@ EVENT_SPY_SIMPLE(EVT_LAST_STAGE_INIT, last_stage_init);
|
||||||
void fdt_fixup_fman_mac_addresses(void *blob)
|
void fdt_fixup_fman_mac_addresses(void *blob)
|
||||||
{
|
{
|
||||||
int node, ret;
|
int node, ret;
|
||||||
char path[24];
|
char path[25];
|
||||||
unsigned char mac_addr[6];
|
unsigned char mac_addr[6];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue