]> git.baikalelectronics.ru Git - kernel.git/commit
x86: fix pci-gart failure handling
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Fri, 26 Oct 2007 11:56:24 +0000 (13:56 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 29 Oct 2007 08:18:03 +0000 (09:18 +0100)
commitd772641eb6b0be611948283342519b6a132a6371
treeb382a134c814c6067adecc6522a2b90092ab5b03
parentb75f073619b69f30290d19838af398cb661e7c11
x86: fix pci-gart failure handling

blk_rq_map_sg doesn't initialize sg->dma_address/length to zero
anymore. Some low level drivers reuse sg lists without initializing so
IOMMUs might get non-zero dma_address/length. If map_sg fails, we need
pass the number of the mapped entries to gart_unmap_sg.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
arch/x86/kernel/pci-gart_64.c