> On 25.09.2019, at 20:40, Heiko Stuebner <[email protected]> wrote:
> 
> Originally the cpuid var the value gets read into was defined as
>    u8 cpuid[RK3399_CPUID_LEN];
> hence the sizeof(cpuid) would return the correct the correct number
> of array elements.
> 
> With the move to a separate function cpuid becomes a pointer and
> sizeof(cpuid) hence returns the pointer size - 8 in the arm64 case.
> 
> We do have the actual id length available as function param so use
> it for actual amount of bytes to read.
> 
> Fixes: 04825384999f ("rockchip: rk3399: derive ethaddr from cpuid")
> Signed-off-by: Heiko Stuebner <[email protected]>

Reviewed-by: Philipp Tomsich <[email protected]>

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

Reply via email to