security: Check the return from stat()
security: Check the return from stat()

It is not safe to continue to analyze the content returned by a call
to stat() if the function previously returned -1.

Signed-off-by: Sebastien Boeuf <90b401417360b1924ef3f520ddee932686110f85@intel.com>

MarioCarrilloA/hyperstart,MarioCarrilloA/hyperstart,MarioCarrilloA/hyperstart