[FOSS_TLK]tegra: common: Add checks for ns_vfp_hw_context
authorSharif Inamdar <isharif@nvidia.com>
Wed, 18 Feb 2015 10:44:52 +0000 (15:44 +0530)
committerDennis Huang <denhuang@nvidia.com>
Tue, 16 Jun 2015 20:59:38 +0000 (13:59 -0700)
commitf12e13f58ed26f0a6bacd5961ba9ca1385e0fd21
treea6b17826dde72bfad254218170f81c764da9b714
parent5615ccc1ad0a2b27a61f377a491946f38000e435
[FOSS_TLK]tegra: common: Add checks for ns_vfp_hw_context

If any task is not loaded then this will be NULL.
Hence adding checks before accessing.

Change-Id: I41fdaebb3124581823f8a064d38621b503be0c7c
Signed-off-by: Sharif Inamdar <isharif@nvidia.com>
Reviewed-on: http://git-master/r/715783
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
platform/tegra/common/tz.c