dma: ste_dma40: Fix potential null pointer dereference
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 2 Sep 2013 08:14:59 +0000 (13:44 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 2 Sep 2013 12:06:00 +0000 (17:36 +0530)
commit2ec7e2e7b5f41a09264abc6dbcfd3fdc9a1edfd5
tree7f11738f7ea315d345702d4a0b2817cacfdced11
parentcbbe13ea097e635ddebcc5937c5cdce16f351447
dma: ste_dma40: Fix potential null pointer dereference

kcalloc can return NULL. Check the pointer before dereferencing.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ste_dma40.c