linux/drivers/tee/amdtee
Dan Carpenter b83685bcee tee: amdtee: fix memory leak in amdtee_open_session()
On these error paths the "sess" variable isn't freed.  It's a refcounted
pointer so we need to call kref_put().  I re-arranged the code a bit so
the error case is always handled before the success case and the error
paths are indented two tabs.

Fixes: 757cc3e9ff ("tee: add AMD-TEE driver")
Reviewed-by: Rijo Thomas <Rijo-john.Thomas@amd.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
2020-02-27 16:22:05 +01:00
..
amdtee_if.h
amdtee_private.h
call.c tee: amdtee: remove unused variable initialization 2020-01-16 15:18:13 +08:00
core.c tee: amdtee: fix memory leak in amdtee_open_session() 2020-02-27 16:22:05 +01:00
Kconfig
Makefile
shm_pool.c