MLK-12213 dma: pxp-v2: fix the potential resource leak issue reported by Coverity
authorFancy Fang <chen.fang@nxp.com>
Wed, 13 Jan 2016 07:11:23 +0000 (15:11 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:45 +0000 (14:49 -0500)
commit454bbc27bb129485d594fe83039a2cf54ceb68e0
treefc207dc7dfc8dea792862c223a1a8b71072a203a
parent8de213614e8456aa55171535f472bd5e86800c50
MLK-12213 dma: pxp-v2: fix the potential resource leak issue reported by Coverity

There may be potential memory leak when the 'desc' allocation failed.
The previous allocated descriptors should be freed when the allocation
failed.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
drivers/dma/pxp/pxp_dma_v2.c