mtip32xx: Unmap the DMA segments before completing the IO request
authorFelipe Franciosi <felipe@paradoxo.org>
Thu, 13 Mar 2014 14:34:21 +0000 (14:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 May 2014 14:59:34 +0000 (07:59 -0700)
commit039c42311d46cff77dac8eded00cedb1fdba1ea9
tree60c89b15050cb39ad31a1e6b0117832748b553a6
parentccbbc3ab78800068d1ecc6984e74db64f2165702
mtip32xx: Unmap the DMA segments before completing the IO request

commit 368c89d7ac70f937c93cd6f3b65bcfdfb3ba794f upstream.

If the buffers are unmapped after completing a request, then stale data
might be in the request.

Signed-off-by: Felipe Franciosi <felipe@paradoxo.org>
Signed-off-by: Jens Axboe <axboe@fb.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/block/mtip32xx/mtip32xx.c