diff options
author | Jenx Axboe <axboe@suse.de> | 2006-02-05 10:36:23 -0500 |
---|---|---|
committer | <jejb@mulgrave.il.steeleye.com> | 2006-02-05 13:59:29 -0500 |
commit | 40cdc840dc337cb17d81bcf028b40834e78c1038 (patch) | |
tree | 6d8bb794620cfe0c1daf3d35cb7ac8ab5d95ebf9 /drivers | |
parent | f9876f0b67c3f0b04ee2167602df54e7ae139ad7 (diff) |
[SCSI] gdth: don't map zero-length requests
Don't map zero-length requests in gdth, zome architectures don't like
that in their dma mapping routines.
[ I'm pretty sure Jens posted this before, but for some reason it got
forgotten --hch ]
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/gdth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c index bd3ffdf6c800..62e3cda859af 100644 --- a/drivers/scsi/gdth.c +++ b/drivers/scsi/gdth.c | |||
@@ -2816,7 +2816,7 @@ static int gdth_fill_cache_cmd(int hanum,Scsi_Cmnd *scp,ushort hdrive) | |||
2816 | } | 2816 | } |
2817 | #endif | 2817 | #endif |
2818 | 2818 | ||
2819 | } else { | 2819 | } else if (scp->request_bufflen) { |
2820 | scp->SCp.Status = GDTH_MAP_SINGLE; | 2820 | scp->SCp.Status = GDTH_MAP_SINGLE; |
2821 | scp->SCp.Message = (read_write == 1 ? | 2821 | scp->SCp.Message = (read_write == 1 ? |
2822 | PCI_DMA_TODEVICE : PCI_DMA_FROMDEVICE); | 2822 | PCI_DMA_TODEVICE : PCI_DMA_FROMDEVICE); |