mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-01 18:53:02 +09:00
osd: add member copying in CONFIG_COMPAT [1/1]
PD#SWPL-32539 Problem: on a64_32 platform green screen if GE2D_STRIDE_CUSTOM is set Solution: add member copying in CONFIG_COMPAT Verify: c1 Change-Id: I47b3d2bba6eb1825c96416fd593668bb397fde87 Signed-off-by: Cao Jian <jian.cao@amlogic.com>
This commit is contained in:
@@ -409,7 +409,12 @@ static int ge2d_ioctl_config_ex_mem(struct ge2d_context_s *context,
|
||||
&uf_ex_mem->src2_mem_alloc_type);
|
||||
r |= get_user(ge2d_config_ex_mem->dst_mem_alloc_type,
|
||||
&uf_ex_mem->dst_mem_alloc_type);
|
||||
|
||||
r |= copy_from_user(&ge2d_config_ex_mem->matrix_custom,
|
||||
&uf_ex_mem->matrix_custom,
|
||||
sizeof(struct ge2d_matrix_s));
|
||||
r |= copy_from_user(&ge2d_config_ex_mem->stride_custom,
|
||||
&uf_ex_mem->stride_custom,
|
||||
sizeof(struct ge2d_stride_s));
|
||||
}
|
||||
if (r) {
|
||||
pr_err("GE2D_CONFIG_EX32 get parameter failed .\n");
|
||||
|
||||
Reference in New Issue
Block a user