Skip to content

Commit bfb6b07

Browse files
Ekansh Guptagregkh
authored andcommitted
misc: fastrpc: Avoid updating PD type for capability request
When user is requesting for DSP capability, the process pd type is getting updated to USER_PD which is incorrect as DSP will assume the process which is making the request is a user PD and this will never get updated back to the original value. The actual PD type should not be updated for capability request and it should be serviced by the respective PD on DSP side. Don't change process's PD type for DSP capability request. Fixes: 6c16fd8 ("misc: fastrpc: Add support to get DSP capabilities") Cc: stable <stable@kernel.org> Signed-off-by: Ekansh Gupta <quic_ekangupt@quicinc.com> Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://lore.kernel.org/r/20240628114501.14310-4-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent e7f0be3 commit bfb6b07

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/misc/fastrpc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1707,7 +1707,6 @@ static int fastrpc_get_info_from_dsp(struct fastrpc_user *fl, uint32_t *dsp_attr
17071707
args[1].ptr = (u64)(uintptr_t)&dsp_attr_buf[1];
17081708
args[1].length = dsp_attr_buf_len * sizeof(u32);
17091709
args[1].fd = -1;
1710-
fl->pd = USER_PD;
17111710

17121711
return fastrpc_internal_invoke(fl, true, FASTRPC_DSP_UTILITIES_HANDLE,
17131712
FASTRPC_SCALARS(0, 1, 1), args);

0 commit comments

Comments
 (0)