Please try this. The sym driver seems to be making some assumptions that
arent quite safe with the current scsi code
--- drivers/scsi/sym53c8xx.c~ Mon Mar 13 13:00:28 2000
+++ drivers/scsi/sym53c8xx.c Sat Mar 18 02:48:31 2000
@@ -1167,7 +1167,7 @@
dma_addr_t mapping;
int dma_dir = scsi_to_pci_dma_dir(cmd->sc_data_direction);
- if (cmd->request_bufflen == 0)
+ if (cmd->request_bufflen == 0 || dma_dir == PCI_DMA_NONE)
return 0;
mapping = pci_map_single(pdev, cmd->request_buffer,
@@ -1183,7 +1183,7 @@
int use_sg;
int dma_dir = scsi_to_pci_dma_dir(cmd->sc_data_direction);
- if (cmd->use_sg == 0)
+ if (cmd->use_sg == 0 || dma_dir==PCI_DMA_NONE)
return 0;
use_sg = pci_map_sg(pdev, cmd->buffer, cmd->use_sg, dma_dir);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:23 EST