Re: [PATCH v4] misc: fastrpc: Fix incorrect DMA mapping unmap request

From: Srinivas Kandagatla
Date: Wed Aug 02 2023 - 11:00:16 EST



On Wed, 02 Aug 2023 19:27:36 +0530, Ekansh Gupta wrote:
> Scatterlist table is obtained during map create request and the same
> table is used for DMA mapping unmap. In case there is any failure
> while getting the sg_table, ERR_PTR is returned instead of sg_table.
>
> When the map is getting freed, there is only a non-NULL check of
> sg_table which will also be true in case failure was returned instead
> of sg_table. This would result in improper unmap request. Add proper
> check before setting map table to avoid bad unmap request.
>
> [...]

Applied, thanks!

[1/1] misc: fastrpc: Fix incorrect DMA mapping unmap request
commit: 3042d44f7e49c74f2928b4780c66564632449bab

Best regards,
--
Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx>