mirror of https://gitee.com/openkylin/linux.git
03212e347f
Prior to this patch in optee_probe() when optee_enumerate_devices() was
called the struct optee was fully initialized. If
optee_enumerate_devices() returns an error optee_probe() is supposed to
clean up and free the struct optee completely, but will at this late
stage need to call optee_remove() instead. This isn't done and thus
freeing the struct optee prematurely.
With this patch the call to optee_enumerate_devices() is done after
optee_probe() has returned successfully and in case
optee_enumerate_devices() fails everything is cleaned up with a call to
optee_remove().
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
call.c | ||
core.c | ||
device.c | ||
optee_msg.h | ||
optee_private.h | ||
optee_smc.h | ||
rpc.c | ||
shm_pool.c | ||
shm_pool.h | ||
supp.c |