On Wed, 13 Apr 2005, Christoph Hellwig wrote:
+ struct page *page;
+ unsigned long offset;
+
+ page = virt_to_page(cmd-request_buffer);
+ offset = ((unsigned long)cmd-request_buffer ~PAGE_MASK);
+ req_dma = pci_map_page(ha-pdev,
Don't use cmd-request-nr_hw_segments as it may not be initialized
(SG_IO in particular bypasses anything that initializes this and just
uses scsi_do_req to insert a scsi_request directly on the head of the
queue) and a bogus value here can trip up the checks to make sure that
the number
2 matches
Mail list logo