aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/string.c
diff options
context:
space:
mode:
authorJens Wiklander2021-06-15 22:23:50 +0200
committerJens Wiklander2021-11-17 14:08:54 +0100
commitf18397ab3ae23e8e43bba9986e66af6d4497f2ad (patch)
treee005c1db617e400db802d6e3449b7768dbd4cc54 /tools/lib/string.c
parentff5fdc34d0aed9931c01e6d50f7f873ecf8df8d3 (diff)
tee: fix put order in teedev_close_context()
Prior to this patch was teedev_close_context() calling tee_device_put() before teedev_ctx_put() leading to teedev_ctx_release() accessing ctx->teedev just after the reference counter was decreased on the teedev. Fix this by calling teedev_ctx_put() before tee_device_put(). Fixes: 217e0250cccb ("tee: use reference counting for tee_context") Reviewed-by: Sumit Garg <sumit.garg@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'tools/lib/string.c')
0 files changed, 0 insertions, 0 deletions