Loading drivers/media/platform/msm/ais/ispif/msm_ispif.c +24 −21 Original line number Diff line number Diff line /* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -215,8 +215,10 @@ static long msm_ispif_cmd_ext(struct v4l2_subdev *sd, long rc = 0; struct ispif_device *ispif = (struct ispif_device *)v4l2_get_subdevdata(sd); struct ispif_cfg_data_ext pcdata; struct ispif_cfg_data_ext pcdata = {0}; struct msm_ispif_param_data_ext *params = NULL; if (is_compat_task()) { #ifdef CONFIG_COMPAT struct ispif_cfg_data_ext_32 *pcdata32 = (struct ispif_cfg_data_ext_32 *)arg; Loading @@ -229,7 +231,8 @@ static long msm_ispif_cmd_ext(struct v4l2_subdev *sd, pcdata.size = pcdata32->size; pcdata.data = compat_ptr(pcdata32->data); #else #endif } else { struct ispif_cfg_data_ext *pcdata64 = (struct ispif_cfg_data_ext *)arg; Loading @@ -240,7 +243,7 @@ static long msm_ispif_cmd_ext(struct v4l2_subdev *sd, pcdata.cfg_type = pcdata64->cfg_type; pcdata.size = pcdata64->size; pcdata.data = pcdata64->data; #endif } if (pcdata.size != sizeof(struct msm_ispif_param_data_ext)) { pr_err("%s: payload size mismatch\n", __func__); return -EINVAL; Loading Loading
drivers/media/platform/msm/ais/ispif/msm_ispif.c +24 −21 Original line number Diff line number Diff line /* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved. /* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -215,8 +215,10 @@ static long msm_ispif_cmd_ext(struct v4l2_subdev *sd, long rc = 0; struct ispif_device *ispif = (struct ispif_device *)v4l2_get_subdevdata(sd); struct ispif_cfg_data_ext pcdata; struct ispif_cfg_data_ext pcdata = {0}; struct msm_ispif_param_data_ext *params = NULL; if (is_compat_task()) { #ifdef CONFIG_COMPAT struct ispif_cfg_data_ext_32 *pcdata32 = (struct ispif_cfg_data_ext_32 *)arg; Loading @@ -229,7 +231,8 @@ static long msm_ispif_cmd_ext(struct v4l2_subdev *sd, pcdata.size = pcdata32->size; pcdata.data = compat_ptr(pcdata32->data); #else #endif } else { struct ispif_cfg_data_ext *pcdata64 = (struct ispif_cfg_data_ext *)arg; Loading @@ -240,7 +243,7 @@ static long msm_ispif_cmd_ext(struct v4l2_subdev *sd, pcdata.cfg_type = pcdata64->cfg_type; pcdata.size = pcdata64->size; pcdata.data = pcdata64->data; #endif } if (pcdata.size != sizeof(struct msm_ispif_param_data_ext)) { pr_err("%s: payload size mismatch\n", __func__); return -EINVAL; Loading