summaryrefslogtreecommitdiff
path: root/drivers/uwb/umc-drv.c
diff options
context:
space:
mode:
authorTakashi Sakamoto <takashi.sakamoto@miraclelinux.com>2017-02-24 02:48:41 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-08 07:30:33 (GMT)
commite5a134739151594ef0981dce63b655cb5c912b74 (patch)
treedd1ac5e162d77536ec4c4d6d1272a19034dc7442 /drivers/uwb/umc-drv.c
parent7a042a4eeb8da48a2e934515326ef4d70c20e7fc (diff)
downloadlinux-e5a134739151594ef0981dce63b655cb5c912b74.tar.xz
ASoC: Intel: Skylake: fix invalid memory access due to wrong reference of pointer
commit d1a6fe41d3c4ff0d26f0b186d774493555ca5282 upstream. In 'skl_tplg_set_module_init_data()', a pointer to 'params' member of 'struct skl_algo_data' is calculated, then casted to (u32 *) and assigned to a member of configuration data. The configuration data is passed to the other functions and used to process intel IPC. In this processing, the value of member is used to get message data, however this can bring invalid memory access in 'skl_set_module_params()' as a result of calculation of a pointer for actual message data. (sound/soc/intel/skylake/skl-topology.c) skl_tplg_init_pipe_modules() ->skl_tplg_set_module_init_data() (has this bug) ->skl_tplg_set_module_params() (sound/soc/intel/skylake/skl-messages.c) ->skl_set_module_params() ((char *)param) + data_offset This commit fixes the bug. Fixes: abb740033b56 ("ASoC: Intel: Skylake: Add support to configure module params") Signed-off-by: Takashi Sakamoto <takashi.sakamoto@miraclelinux.com> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/uwb/umc-drv.c')
0 files changed, 0 insertions, 0 deletions