msm: eva: Fix a compiler error of typecasting
Fix session id type casting issue Change-Id: Ic7a61a38cbb2bd884c10e4b58a579357ce444ee1 Signed-off-by: George Shen <sqiao@codeaurora.org>
このコミットが含まれているのは:
@@ -486,7 +486,7 @@ static int hfi_process_session_cvp_msg(u32 device_id,
|
|||||||
struct cvp_session_msg *sess_msg;
|
struct cvp_session_msg *sess_msg;
|
||||||
struct msm_cvp_inst *inst = NULL;
|
struct msm_cvp_inst *inst = NULL;
|
||||||
struct msm_cvp_core *core;
|
struct msm_cvp_core *core;
|
||||||
void *session_id;
|
unsigned int session_id;
|
||||||
struct cvp_session_queue *sq;
|
struct cvp_session_queue *sq;
|
||||||
|
|
||||||
if (!pkt) {
|
if (!pkt) {
|
||||||
@@ -496,9 +496,9 @@ static int hfi_process_session_cvp_msg(u32 device_id,
|
|||||||
dprintk(CVP_ERR, "%s: bad_pkt_size %d\n", __func__, pkt->size);
|
dprintk(CVP_ERR, "%s: bad_pkt_size %d\n", __func__, pkt->size);
|
||||||
return -E2BIG;
|
return -E2BIG;
|
||||||
}
|
}
|
||||||
session_id = (void *)(uintptr_t)get_msg_session_id(pkt);
|
session_id = get_msg_session_id(pkt);
|
||||||
core = list_first_entry(&cvp_driver->cores, struct msm_cvp_core, list);
|
core = list_first_entry(&cvp_driver->cores, struct msm_cvp_core, list);
|
||||||
inst = cvp_get_inst_from_id(core, (unsigned int)session_id);
|
inst = cvp_get_inst_from_id(core, session_id);
|
||||||
|
|
||||||
if (!inst) {
|
if (!inst) {
|
||||||
dprintk(CVP_ERR, "%s: invalid session\n", __func__);
|
dprintk(CVP_ERR, "%s: invalid session\n", __func__);
|
||||||
|
新しいイシューから参照
ユーザーをブロックする