]> git.karo-electronics.de Git - linux-beck.git/commit
dmaengine: rcar-dmac: unmap slave resource when channel is freed
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 11 Jan 2017 14:39:31 +0000 (15:39 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Jan 2017 07:24:45 +0000 (08:24 +0100)
commit172270c743487ec24cc145949a77bd57136ffff9
tree1ade5ede9454f6ef6843e8fb12c347fde971eb9c
parent3bef7578e05f8188743641da8bc7ddfdbb64d268
dmaengine: rcar-dmac: unmap slave resource when channel is freed

commit 3139dc8ded6f27552a248d23fe9f086e3027fa12 upstream.

The slave mapping should be removed together with other channel
resources when the channel is freed. If it's not unmapped it will hang
around forever after the channel is freed.

Fixes: 9f878603dbdb7db3 ("dmaengine: rcar-dmac: add iommu support for slave transfers")
Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/sh/rcar-dmac.c