From: Christoph Hellwig Date: Thu, 23 Apr 2015 07:48:51 +0000 (+0200) Subject: 3w-9xxx: fix command completion race X-Git-Tag: omap-for-v4.2/omap1-v2~39^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=118c855b5623f3e2e6204f02623d88c09e0c34de;p=pandora-kernel.git 3w-9xxx: fix command completion race The 3w-9xxx driver needs to tear down the dma mappings before returning the command to the midlayer, as there is no guarantee the sglist and count are valid after that point. Also remove the dma mapping helpers which have another inherent race due to the request_id index. Signed-off-by: Christoph Hellwig Cc: stable@vger.kernel.org Acked-by: Adam Radford Signed-off-by: James Bottomley --- Reading git-diff-tree failed