Fix more coverity findings
Fix more coverity findings

Change-Id: I53ed2b86328c82c2466d93490ee63d4cb8fc072e
Signed-off-by: Brian McGillion <e5584ecd8ee5868d4650d758a8412085be93f4f1@intel.com>

Open-TEE/tee-engine