From: Dmitry Kalinkin Date: Thu, 28 May 2015 12:07:00 +0000 (+0300) Subject: vme: tsi148: fix first DMA item mapping X-Git-Tag: omap-for-v4.2/fixes-rc1^2~92^2~162 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2383c90a9d691201b9aee557776694cde86a935;p=pandora-kernel.git vme: tsi148: fix first DMA item mapping This moves DMA mapping of the first list element to vme_list_add, the same place where other elements mappings occur. This prevents extra mapping or over-unmapping in the cases when vme_list_exec is called more or less than one time respectively. Also adds dma_mapping_error check. Signed-off-by: Dmitry Kalinkin Cc: Igor Alekseev Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed