ARM: dma-mapping: NULLify dev->archdata.mapping pointer on detach
authorWill Deacon <will.deacon@arm.com>
Mon, 10 Jun 2013 18:34:40 +0000 (19:34 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 28 Jun 2013 13:14:27 +0000 (15:14 +0200)
commit9e4b259d4fbf8a9c822117e734356e94b7f30927
treeab378986ba020efa32e1cb709085be44b06eda3c
parent13987d68bcf476a93fa864ea4e58755f1bc4bd30
ARM: dma-mapping: NULLify dev->archdata.mapping pointer on detach

The current code only clobbers a local variable, so the device is left
with a stale mapping pointer.

Cc: Hiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Acked-by: Hiroshi Doyu <hdoyu@nvidia.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
arch/arm/mm/dma-mapping.c