diff options
author | Sinan Kaya <okaya@codeaurora.org> | 2016-08-31 17:10:27 +0200 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-08-31 17:57:32 +0200 |
commit | 8a31f8b5db65b860fd0d358dc27f6daf26074406 (patch) | |
tree | 2464951e1e9b2eaa2930294abe5c2c2b685bb35c /fs/eventpoll.c | |
parent | dmaengine: sh_shdma-base: convert callback to helper function (diff) | |
download | linux-8a31f8b5db65b860fd0d358dc27f6daf26074406.tar.xz linux-8a31f8b5db65b860fd0d358dc27f6daf26074406.zip |
dmaengine: qcom_hidma: release the descriptor before the callback
There is a race condition between data transfer callback and descriptor
free code. The callback routine may decide to clear the resources even
though the descriptor has not yet been freed.
Instead of calling the callback first and then releasing the memory,
this code is changing the order to return the descriptor back to the
free pool and then call the user provided callback.
Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'fs/eventpoll.c')
0 files changed, 0 insertions, 0 deletions