OSDN Git Service

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)
commit3f3c75541ffe082194e48ea9aa5edf2341f77753
tree9d93e0dc74337aba036d43b270bbbaf4da7e420e
parent787d3083caf899b8c3abf5a0c7a04e79d77f2c32
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: 787d3083caf8 ("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