dmaengine: ioat: Fix error handling path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 17 Nov 2017 21:37:53 +0000 (22:37 +0100)
committerVinod Koul <vinod.koul@intel.com>
Wed, 29 Nov 2017 14:17:46 +0000 (19:47 +0530)
commit5c9afbda911ce20b3f2181d1e440a0222e1027dd
tree7fa02f8a8c4891268e6bd3670627e9321c0f621d
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323
dmaengine: ioat: Fix error handling path

If the last test in 'ioat_dma_self_test()' fails, we must release all
the allocated resources and not just part of them.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/ioat/init.c