mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
ge2d: correct ge2d_magic value in CONFIG_COMPAT case [1/1]
PD#SWPL-10046 Problem: unexpected conversation result under 32bit userspace + 64bit kernel Solution: use compat_config_para_ex_memtype_s as ge2d_magic for CONFIG_COMPAT Verify: verified on g12b-w400 Change-Id: I5a8fad9c18d9852c4e214c810b910100a30046a9 Signed-off-by: Jian Cao <jian.cao@amlogic.com>
This commit is contained in:
@@ -245,7 +245,7 @@ static int ge2d_ioctl_config_ex_mem(struct ge2d_context_s *context,
|
||||
ge2d_config_ex_mem = &(ge2d_para_config.para_config_memtype);
|
||||
|
||||
if (ge2d_para_config.para_config_memtype.ge2d_magic
|
||||
== sizeof(struct config_para_ex_memtype_s)) {
|
||||
== sizeof(struct compat_config_para_ex_memtype_s)) {
|
||||
struct config_para_ex_ion_s *pge2d_config_ex;
|
||||
|
||||
uf_ex_mem =
|
||||
|
||||
Reference in New Issue
Block a user