From c83a067a9a82010e5b1b7685ca9720e9c27a52a7 Mon Sep 17 00:00:00 2001 From: Zhen Kong Date: Tue, 7 Feb 2017 17:15:54 -0800 Subject: qseecom: return app_id correctly when looking up and loading app When __qseecom_check_app_exsits() and __qseecom_load_fw() get app_id from TZ, they save it to function's return value then return back. But "app_id" is of type uint32, "ret" is int32, this will return incorrect app_id to the caller if app_id is larger than 0x7FFFFFFF. Thus make change to return app_id correctly. Change-Id: I2ef98d64490c480d5416ee24ec6ca9aca9c8ca8a Signed-off-by: Zhen Kong --- include/uapi/linux/qseecom.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/uapi/linux') diff --git a/include/uapi/linux/qseecom.h b/include/uapi/linux/qseecom.h index 5c5761d690dd..40c96eef3059 100644 --- a/include/uapi/linux/qseecom.h +++ b/include/uapi/linux/qseecom.h @@ -92,7 +92,7 @@ struct qseecom_load_img_req { int32_t ifd_data_fd; /* in */ char img_name[MAX_APP_NAME_SIZE]; /* in */ uint32_t app_arch; /* in */ - int app_id; /* out*/ + uint32_t app_id; /* out*/ }; struct qseecom_set_sb_mem_param_req { @@ -116,7 +116,7 @@ struct qseecom_qseos_version_req { */ struct qseecom_qseos_app_load_query { char app_name[MAX_APP_NAME_SIZE]; /* in */ - int app_id; /* out */ + uint32_t app_id; /* out */ uint32_t app_arch; }; -- cgit v1.2.3