DMA: PL330: Fix potential NULL pointer dereference in pl330_submit_req()
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 17 Sep 2012 09:50:22 +0000 (15:20 +0530)
committerVinod Koul <vinod.koul@linux.intel.com>
Tue, 18 Sep 2012 03:34:52 +0000 (09:04 +0530)
commit2e2c682becb20416c140aa0d6d3137b51a5c76da
tree460b626180e90deb7368f60a823345a63228f26b
parentc456797681db814f4f5b36909e8e94047bf53d9c
DMA: PL330: Fix potential NULL pointer dereference in pl330_submit_req()

'r->cfg' is being checked for NULL. However, it is dereferenced
in the previous statements. Thus moving those statements within
the check.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Jassi Brar <jassisinghbrar@gmail.com>
Cc: Stable <stable@vger.kernel.org>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/pl330.c