mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-01-08 18:22:15 +01:00
Add a null check for 'file' before dereferencing it and also rework the error handling to be a bit more sane. This issue was found by Smatch. Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>