ste_dma40: Return directly after a failed kmalloc_array()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 17 Sep 2016 06:21:30 +0000 (08:21 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 26 Sep 2016 17:36:16 +0000 (23:06 +0530)
commit2c7f2f20da9d3fe13ed08d1661ebc12d4ce0cab9
treeab6e3420f3b442649bad69ddc93ea2f5c8d22661
parentcf80ecf7a277e7908264f822c721f93403cf518f
ste_dma40: Return directly after a failed kmalloc_array()

Return directly after a memory allocation failed in this function
at the beginning.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ste_dma40.c