firmware-utils: mkdlinkfw: fix error handling
fread() doesn't set errno, ferror need to be used to check for errors. While at it, check if we read the expect number of elements. Signed-off-by: Mathias Kresin <dev@kresin.me>v19.07.3_mercusys_ac12_duma
parent
e428b127e7
commit
0e78af22d9
Loading…
Reference in New Issue