Re: [PATCH] dmaengine: qcom_hidma: avoid freeing an uninitialized pointer

From: Vinod Koul
Date: Mon Aug 21 2017 - 12:18:27 EST


On Thu, Aug 10, 2017 at 06:54:25PM +0300, Anton Vasilyev wrote:
> If device_node np doesn't contain child or first child doesn't have
> property "reg" then hidma_mgmt_of_populate_channels() perfoms
> deallocation on uninitialized local variable res.
>
> The patch adds res initialization by NULL.
>
> Found by Linux Driver Verification project (linuxtesting.org).

Applied, thanks

--
~Vinod