mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
Merge tag 'qcomtee-fixes2-for-6.18' of git://git.kernel.org/pub/scm/linux/kernel/git/jenswi/linux-tee into arm/fixes
QCOMTEE fixes2 for v6.18 - initialize result before use in in error path - fix uninitialized pointers with free attribute * tag 'qcomtee-fixes2-for-6.18' of git://git.kernel.org/pub/scm/linux/kernel/git/jenswi/linux-tee: tee: qcomtee: initialize result before use in release worker tee: qcomtee: fix uninitialized pointers with free attribute Signed-off-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
@@ -645,7 +645,7 @@ static void qcomtee_get_version(struct tee_device *teedev,
|
||||
static void qcomtee_get_qtee_feature_list(struct tee_context *ctx, u32 id,
|
||||
u32 *version)
|
||||
{
|
||||
struct qcomtee_object_invoke_ctx *oic __free(kfree);
|
||||
struct qcomtee_object_invoke_ctx *oic __free(kfree) = NULL;
|
||||
struct qcomtee_object *client_env, *service;
|
||||
struct qcomtee_arg u[3] = { 0 };
|
||||
int result;
|
||||
|
||||
@@ -82,7 +82,7 @@ static void qcomtee_do_release_qtee_object(struct work_struct *work)
|
||||
{
|
||||
struct qcomtee_object *object;
|
||||
struct qcomtee *qcomtee;
|
||||
int ret, result;
|
||||
int ret, result = 0;
|
||||
|
||||
/* RELEASE does not require any argument. */
|
||||
struct qcomtee_arg args[] = { { .type = QCOMTEE_ARG_TYPE_INV } };
|
||||
|
||||
Reference in New Issue
Block a user