dmaengine: fix - error: potential NULL dereference 'chan'
authorVinod Koul <vinod.koul@intel.com>
Mon, 19 Aug 2013 05:17:26 +0000 (10:47 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 19 Aug 2013 05:18:13 +0000 (10:48 +0530)
commitd9a6c8f52d1039333bef6234126485409e8f7501
tree4ba0b0dfb0cc814f633d1c7b1b88dcc8d13f2af7
parent7bb587f4eef8f71ce589f360ab99bb54ab0fc85d
dmaengine: fix - error: potential NULL dereference 'chan'

commit 7bb587f4 "dmaengine: add interface of dma_get_slave_channel" introduced
the above error so fix it

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Suggested-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dmaengine.c