lkml.org 
[lkml]   [2000]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: 2.3.00p1/2.3.49: more problems concerning devfs & generic scsi
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.076 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site