commit | 118c855b5623f3e2e6204f02623d88c09e0c34de | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Thu Apr 23 09:48:51 2015 +0200 |
committer | James Bottomley <JBottomley@Odin.com> | Mon Apr 27 10:10:19 2015 -0700 |
tree | 2a6fcd529adaf3b08a06abebb95802dc838ea16d | |
parent | 9cd9554615cba14f0877cc9972a6537ad2bdde61 [diff] |
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 <hch@lst.de> Cc: stable@vger.kernel.org Acked-by: Adam Radford <aradford@gmail.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>