Trusty: Fix sanity check on NS entry point
authorSandrine Bailleux <sandrine.bailleux@arm.com>
Mon, 19 Mar 2018 09:41:06 +0000 (10:41 +0100)
committerSandrine Bailleux <sandrine.bailleux@arm.com>
Wed, 21 Mar 2018 07:29:31 +0000 (08:29 +0100)
commit0d3feba9303a7fad186e4cc009f25bce6a7d4eb5
treea11de01df0a3f0c263975f0125eb1a7ede8c8693
parented8112606c54d85781fc8429160883d6310ece32
Trusty: Fix sanity check on NS entry point

This patch fixes the sanity check on the non-secure entrypoint value
returned by bl31_plat_get_next_image_ep_info(). This issue has been
reported by Coverity Scan Online:

  CID 264893 (#1 of 1): Dereference null return value (NULL_RETURNS)
  Dereferencing a null pointer ns_ep_info.

Change-Id: Ia0f64d8c8b005f042608f1422ecbd42bc90b2fb4
Signed-off-by: Sandrine Bailleux <sandrine.bailleux@arm.com>
services/spd/trusty/trusty.c