linux/drivers/dma/qcom
Anton Vasilyev a63efead7f dmaengine: qcom_hidma: avoid freeing an uninitialized pointer
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).

Signed-off-by: Anton Vasilyev <vasilyev@ispras.ru>
Reviewed-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
2017-08-21 21:51:00 +05:30
..
bam_dma.c dmaengine: qcom-bam-dma: add __maybe_unused annotations for PM 2016-07-06 22:39:43 +05:30
hidma_dbg.c dmaengine: qcom_hidma: make pending_tre_count atomic 2016-11-03 18:55:44 +05:30
hidma_ll.c dmaengine: qcom_hidma: introduce memset support 2017-07-19 09:33:21 +05:30
hidma_mgmt_sys.c
hidma_mgmt.c dmaengine: qcom_hidma: avoid freeing an uninitialized pointer 2017-08-21 21:51:00 +05:30
hidma_mgmt.h
hidma.c dmaengine: qcom_hidma: introduce memset support 2017-07-19 09:33:21 +05:30
hidma.h dmaengine: qcom_hidma: introduce memset support 2017-07-19 09:33:21 +05:30
Kconfig dmaengine: add Qualcomm Technologies HIDMA channel driver 2016-03-11 07:42:30 +05:30
Makefile dmaengine: qcom_hidma: add debugfs hooks 2016-05-14 11:54:45 +05:30