f5cba91b09
The fstat function could return a value that indicates an error condition. If this is not checked, the error condition may not be handled correctly. Coverity issue: 195019 Fixes: f37d8a4b67b2 ("net/nfp: add NSP FW upload command") Signed-off-by: Alejandro Lucero <alejandro.lucero@netronome.com>