]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dmaengine: fix dmaengine_unmap failure
authorXuelin Shi <xuelin.shi@freescale.com>
Thu, 20 Mar 2014 06:33:50 +0000 (14:33 +0800)
committerDan Williams <dan.j.williams@intel.com>
Thu, 10 Apr 2014 19:26:17 +0000 (12:26 -0700)
commit82aa0d98b29437fca30d6a075d97b8be928e32d5
tree4c19733482517a32bf8b9560a1a97d5dc6f9e377
parentfbeec99ad5c03060ba71c470ac373e24e23a80e0
dmaengine: fix dmaengine_unmap failure

The count which is used to get_unmap_data maybe not the same as the
count computed in dmaengine_unmap which causes to free data in a
wrong pool.

This patch fixes this issue by keeping the map count with unmap_data
structure and use this count to get the pool.

Cc: <stable@vger.kernel.org>
Signed-off-by: Xuelin Shi <xuelin.shi@freescale.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/dmaengine.c
include/linux/dmaengine.h