]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dmaengine: ensure dmaengine helpers check valid callback
authorVinod Koul <vinod.koul@intel.com>
Tue, 12 Apr 2016 15:37:06 +0000 (21:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 May 2018 06:49:00 +0000 (08:49 +0200)
commit92cffdc98efb1dea5d6f6911616f05dc6338d75f
tree4789212601249da32c774a5e8298045b2f7f1ca8
parent367971340270db5b3856172ed2072209ea9575dc
dmaengine: ensure dmaengine helpers check valid callback

commit 757d12e5849be549076901b0d33c60d5f360269c upstream.

dmaengine has various device callbacks and exposes helper
functions to invoke these. These helpers should check if channel,
device and callback is valid or not before invoking them.

Reported-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Fabrizio Castro <fabrizio.castro@bp.renesas.com>
Signed-off-by: Jianming Qiao <jianming.qiao@bp.renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/dmaengine.h