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

2017-08-21 Thread Vinod Koul
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.

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

2017-08-21 Thread Vinod Koul
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.

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

2017-08-10 Thread Sinan Kaya
On 8/10/2017 11:54 AM, 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

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

2017-08-10 Thread Sinan Kaya
On 8/10/2017 11:54 AM, 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

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

2017-08-10 Thread Anton Vasilyev
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).

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

2017-08-10 Thread Anton Vasilyev
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).