[PATCH] dmaengine: at_xdmac: avoid null_prt_deref in at_xdmac_prep_dma_memset

Vinod Koul vkoul at kernel.org
Mon Dec 2 09:30:38 PST 2024


On Tue, 29 Oct 2024 08:28:45 +0000, Chen Ridong wrote:
> The at_xdmac_memset_create_desc may return NULL, which will lead to a
> null pointer dereference. For example, the len input is error, or the
> atchan->free_descs_list is empty and memory is exhausted. Therefore, add
> check to avoid this.
> 
> 

Applied, thanks!

[1/1] dmaengine: at_xdmac: avoid null_prt_deref in at_xdmac_prep_dma_memset
      commit: c43ec96e8d34399bd9dab2f2dc316b904892133f

Best regards,
-- 
~Vinod





More information about the linux-arm-kernel mailing list