diff options
author | Christoph Hellwig <hch@lst.de> | 2015-04-23 09:48:51 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-04-27 10:10:19 -0700 |
commit | 118c855b5623f3e2e6204f02623d88c09e0c34de (patch) | |
tree | 2a6fcd529adaf3b08a06abebb95802dc838ea16d /drivers/scsi/3w-9xxx.h | |
parent | 9cd9554615cba14f0877cc9972a6537ad2bdde61 (diff) | |
download | linux-118c855b5623f3e2e6204f02623d88c09e0c34de.tar.gz linux-118c855b5623f3e2e6204f02623d88c09e0c34de.tar.bz2 linux-118c855b5623f3e2e6204f02623d88c09e0c34de.zip |
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>
Diffstat (limited to 'drivers/scsi/3w-9xxx.h')
-rw-r--r-- | drivers/scsi/3w-9xxx.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/scsi/3w-9xxx.h b/drivers/scsi/3w-9xxx.h index 040f7214e5b7..0fdc83cfa0e1 100644 --- a/drivers/scsi/3w-9xxx.h +++ b/drivers/scsi/3w-9xxx.h @@ -324,11 +324,6 @@ static twa_message_type twa_error_table[] = { #define TW_CURRENT_DRIVER_BUILD 0 #define TW_CURRENT_DRIVER_BRANCH 0 -/* Phase defines */ -#define TW_PHASE_INITIAL 0 -#define TW_PHASE_SINGLE 1 -#define TW_PHASE_SGLIST 2 - /* Misc defines */ #define TW_9550SX_DRAIN_COMPLETED 0xFFFF #define TW_SECTOR_SIZE 512 |