]> git.karo-electronics.de Git - karo-tx-linux.git/commit
dma-debug: check nents in dma_sync_sg*
authorRobin Murphy <robin.murphy@arm.com>
Wed, 21 Oct 2015 22:04:01 +0000 (09:04 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:04:01 +0000 (09:04 +1100)
commitfc4f8eeaf6409830ef3426aaba425a1dcb14c681
treedb357737846259f60e6b1e3b9fce42985adfed35
parentcf3af78dc5bf10c20514c3796c33c7ef37b2992e
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>
lib/dma-debug.c