> + 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, page, offset, > + cmd->request_bufflen, cmd->sc_data_direction); Why're you're redoing that code please switch to pci_map_single insted of these nasty operations to go to the page first, the code will become a lit simpler too, e.g. the above becomes just: req_dma = pci_map_single(ha->pdev, cmd->request_buffer, cmd->request_bufflen, cmd->sc_data_direction); - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html