linux_dsm_epyc7002/drivers/dma/dw-axi-dmac
Colin Ian King 0788611c9a dmaengine: dw-axi-dmac: fix null dereference when pointer first is null
In the unlikely event that axi_desc_get returns a null desc in the
very first iteration of the while-loop the error exit path ends
up calling axi_desc_put on a null pointer 'first' and this causes
a null pointer dereference.  Fix this by adding a null check on
pointer 'first' before calling axi_desc_put.

Addresses-Coverity: ("Explicit null dereference")
Fixes: 1fe20f1b84 ("dmaengine: Introduce DW AXI DMAC driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2019-05-21 14:25:52 +05:30
..
dw-axi-dmac-platform.c dmaengine: dw-axi-dmac: fix null dereference when pointer first is null 2019-05-21 14:25:52 +05:30
dw-axi-dmac.h dmaengine: dw-axi-dmac: Fix trivia typo 2019-01-08 22:36:18 +05:30
Makefile dmaengine: Introduce DW AXI DMAC driver 2018-03-19 13:38:16 +05:30