mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
video: rockchip: mpp: fix issue for rkvenc request check
It is not necessary to check offset for MPP_CMD_SET_REG_ADDR_OFFSET, and user space can not ensure it. Change-Id: Iac3a2fa3ce8be8d9afd7294e7c3ec4bc6df4a2e3 Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
This commit is contained in:
@@ -267,9 +267,8 @@ static int rkvenc_extract_task_msg(struct rkvenc_task *task,
|
||||
req, sizeof(*req));
|
||||
} break;
|
||||
case MPP_CMD_SET_REG_ADDR_OFFSET: {
|
||||
int off = off_inf->cnt * sizeof(off_inf->elem[0]);
|
||||
|
||||
ret = mpp_check_req(req, off, sizeof(off_inf->elem),
|
||||
ret = mpp_check_req(req, req->offset,
|
||||
sizeof(off_inf->elem),
|
||||
0, sizeof(off_inf->elem));
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user