From: Christoph Hellwig Date: Thu, 23 Apr 2015 07:48:49 +0000 (+0200) Subject: 3w-sas: fix command completion race X-Git-Tag: v3.2.70~109 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4fcafc95800aaa813435f5b9038182ca03dc6280;p=pandora-kernel.git 3w-sas: fix command completion race commit 579d69bc1fd56d5af5761969aa529d1d1c188300 upstream. The 3w-sas 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 Reported-by: Torsten Luettgert Tested-by: Bernd Kardatzki Acked-by: Adam Radford Signed-off-by: James Bottomley Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed