video: rockchip: vpu: stride err for jpeg encode
Change-Id: Ife4d21c8361275d8832e0c1e3439c945c236d625 Signed-off-by: Jung Zhao <jung.zhao@rock-chips.com>
This commit is contained in:
parent
ed28e4ee25
commit
92cd6903dc
1 changed files with 2 additions and 1 deletions
|
|
@ -96,7 +96,8 @@ static struct mpp_ctx *rockchip_mpp_vepu_init(struct rockchip_mpp_dev *mpp,
|
|||
if (extinf_len > 0) {
|
||||
u32 ext_cpy = min_t(size_t, extinf_len, sizeof(ctx->ext_inf));
|
||||
|
||||
if (copy_from_user(&ctx->ext_inf, (u8 *)src + reg_len,
|
||||
if (copy_from_user(&ctx->ext_inf, (u8 *)src +
|
||||
reg_len * sizeof(u32),
|
||||
ext_cpy)) {
|
||||
mpp_err("copy_from_user failed when extra info\n");
|
||||
kfree(ctx);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue