dmaengine: vdma: don't crash when bad channel is requested
authorFranck Jullien <franck.jullien@odyssee-systemes.fr>
Tue, 22 Mar 2016 10:52:22 +0000 (11:52 +0100)
committerVinod Koul <vinod.koul@intel.com>
Tue, 5 Apr 2016 18:10:57 +0000 (11:10 -0700)
commit330ed4da2c8eb821e70b1366a7af53eb1c7421fb
treec513381a2a3214cf06fa1b8a9ec9358aab49e4b5
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
dmaengine: vdma: don't crash when bad channel is requested

When client request a non existing channel from of_dma_xilinx_xlate
we get a NULL pointer dereferencing. This patch fix this problem.

Signed-off-by: Franck Jullien <franck.jullien@odyssee-systemes.fr>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/xilinx/xilinx_vdma.c