Re: [PATCH] dmaengine: validate dev and name in dma_request_chan()

From: Vinod Koul

Date: Fri Jul 17 2026 - 08:38:29 EST



On Thu, 16 Jul 2026 12:27:58 +0700, phucduc.bui@xxxxxxxxx wrote:
> dma_request_chan() assumes both @dev and @name are valid, but neither is
> checked before use.
>
> dev is dereferenced immediately via dev_fwnode(), which accesses
> dev->of_node or dev->fwnode without checking for NULL. Likewise, if name is
> NULL and the OF/ACPI lookup does not succeed, the legacy filter-map path
> eventually passes it to strcmp(), resulting in a NULL pointer dereference.
>
> [...]

Applied, thanks!

[1/1] dmaengine: validate dev and name in dma_request_chan()
commit: dc8a5238e1c7db74a7b4f02bcf0b05559b6627c5

Best regards,
--
~Vinod