]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: dmatest: fix a small memory leak in dmatest_func()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 3 Dec 2018 14:49:33 +0000 (17:49 +0300)
committerVinod Koul <vkoul@kernel.org>
Wed, 5 Dec 2018 08:07:46 +0000 (13:37 +0530)
commitb0c8326d876f82f4331158eed4aa4144c715c102
tree9d93e0dc74337aba036d43b270bbbaf4da7e420e
parent7335159760a2eb8baf8d6177e4490d55280be7af
dmaengine: dmatest: fix a small memory leak in dmatest_func()

We recently moved the test size tests around but it means we need to
adjust the error handling as well or we leak the "pq_coefs" memory.  I
updated the label name to reflect that we're freeing coefs.

Fixes: 7335159760a2 ("dmaengine: dmatest: move size checks earlier in function")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dmatest.c