Searched hist:"2 a7b42199ea2e3b5f9e91a927c987894dd07ed58" (Results 1 – 1 of 1) sorted by relevance
| /optee_os/core/kernel/ |
| H A D | tee_ta_manager.c | 2a7b42199ea2e3b5f9e91a927c987894dd07ed58 Mon Jan 11 09:18:43 UTC 2021 Jerome Forissier <jerome@forissier.org> ftrace: fix regression causing panic in ftrace_update_times()
Commit 00b3b9a25e76 ("core: add generic struct ts_session") has introduced a regression in the ftrace code by introducing a call to ts_get_current_session() in ftrace_update_times() in replacement of tee_ta_get_current_session(). At this point it can happen that no current session exists, in which case the function should simply return. Unfortunately ts_get_current_session() will call panic() is such a situation. The proper function is ts_get_current_session_may_fail().
Fixes: 00b3b9a25e76 ("core: add generic struct ts_session") Fixes: https://github.com/OP-TEE/optee_os/issues/4313 Signed-off-by: Jerome Forissier <jerome@forissier.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Reviewed-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
|