[PATCH v1 1/3] misc: fastrpc: Save actual DMA size in fastrpc_map structure

Dmitry Baryshkov dmitry.baryshkov at linaro.org
Fri Aug 30 09:28:52 UTC 2024


On Thu, Aug 22, 2024 at 04:29:31PM GMT, Ekansh Gupta wrote:
> For user passed fd buffer, map is created using DMA calls. The
> map related information is stored in fastrpc_map structure. The
> actual DMA size is not stored in the structure. Store the actual
> size of buffer and check it against the user passed size.
> 
> Fixes: c68cfb718c8f ("misc: fastrpc: Add support for context Invoke method")
> Cc: stable <stable at kernel.org>
> Signed-off-by: Ekansh Gupta <quic_ekangupt at quicinc.com>
> ---
>  drivers/misc/fastrpc.c | 27 ++++++++++++++++++---------
>  1 file changed, 18 insertions(+), 9 deletions(-)
> 

Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov at linaro.org>

-- 
With best wishes
Dmitry


More information about the dri-devel mailing list