]> git.baikalelectronics.ru Git - kernel.git/commit
ide: save the returned value of dma_map_sg
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Fri, 13 Mar 2009 20:16:13 +0000 (21:16 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 13 Mar 2009 20:16:13 +0000 (21:16 +0100)
commitdda442178bb280eb84663965c97f58ceae4f5267
tree47ec22f0bdf7b5eaa79eef17dbacedc29b1123c2
parenta38eb9491d642b89141af20fb9b8503af3f00ac1
ide: save the returned value of dma_map_sg

dma_map_sg could return a value different to 'nents' argument of
dma_map_sg so the ide stack needs to save it for the later usage
(e.g. for_each_sg).

The ide stack also needs to save the original sg_nents value for
pci_unmap_sg.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
[bart: backport to Linus' tree]
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-dma.c
include/linux/ide.h