Skip to content
Snippets Groups Projects
Commit 03f98b75 authored by Heiko Stuebner's avatar Heiko Stuebner Committed by Kever Yang
Browse files

rockchip: misc: read the correct number of bytes from the efuse


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: 04825384 ("rockchip: rk3399: derive ethaddr from cpuid")
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
Reviewed-by: default avatarPhilipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: default avatarKever <Yang&lt;kever.yang@rock-chips.com>
parent dfd59007
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment