diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 04:59:52 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 04:59:52 +0000 |
commit | 2beb3a69f30a600ae3ec27334e189649379b9329 (patch) | |
tree | 2ce8a4e341ac9f98fb265347777487eda74eba48 /plat/qti/qtiseclib/src/qtiseclib_cb_interface.c | |
parent | 0f2974e30f5150b29f1dff5ec041d74ac687327c (diff) | |
parent | 138668cae2394deb5d695c70fe4aa9760c4458ee (diff) | |
download | arm-trusted-firmware-2beb3a69f30a600ae3ec27334e189649379b9329.tar.gz |
Snap for 10453563 from 138668cae2394deb5d695c70fe4aa9760c4458ee to mainline-os-statsd-releaseaml_sta_341710000aml_sta_341615000aml_sta_341511040aml_sta_341410000aml_sta_341311010aml_sta_341114000aml_sta_341111000aml_sta_341010020aml_sta_340912000aml_sta_340911000aml_net_341111030android14-mainline-os-statsd-release
Change-Id: I4cf7f6eba068f9a96359b9ea4386cfb69e72d1ea
Diffstat (limited to 'plat/qti/qtiseclib/src/qtiseclib_cb_interface.c')
-rw-r--r-- | plat/qti/qtiseclib/src/qtiseclib_cb_interface.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plat/qti/qtiseclib/src/qtiseclib_cb_interface.c b/plat/qti/qtiseclib/src/qtiseclib_cb_interface.c index bb552c66b..c4cd25973 100644 --- a/plat/qti/qtiseclib/src/qtiseclib_cb_interface.c +++ b/plat/qti/qtiseclib/src/qtiseclib_cb_interface.c @@ -132,6 +132,10 @@ void qtiseclib_cb_get_ns_ctx(qtiseclib_dbg_a64_ctxt_regs_type *qti_ns_ctx) void *ctx; ctx = cm_get_context(NON_SECURE); + if (ctx) { + /* nothing to be done w/o ns context */ + return; + } qti_ns_ctx->spsr_el3 = read_ctx_reg(get_el3state_ctx(ctx), CTX_SPSR_EL3); |