]> git.baikalelectronics.ru Git - kernel.git/commit
dma-debug: check nents in dma_sync_sg*
authorRobin Murphy <robin.murphy@arm.com>
Sat, 7 Nov 2015 00:32:55 +0000 (16:32 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 7 Nov 2015 01:50:42 +0000 (17:50 -0800)
commit68571d19d8a864a81bf6906df1c4931870b823c6
tree3fcd7b9d5c61e287914b2e576ac662eccc8c701e
parentb887a3aeb1aa092e1f70b51418959e5a66702c1a
dma-debug: check nents in dma_sync_sg*

Like dma_unmap_sg, dma_sync_sg* should be called with the original number
of entries passed to dma_map_sg, so do the same check in the sync path as
we do in the unmap path.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Sakari Ailus <sakari.ailus@iki.fi>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/dma-debug.c