|
@@ -6,7 +6,7 @@
|
|
|
Arnaldo Carvalho de Melo <acme@conectiva.com.br>
|
|
|
Brad Strand <linux@3ware.com>
|
|
|
|
|
|
- Copyright (C) 1999-2007 3ware Inc.
|
|
|
+ Copyright (C) 1999-2009 3ware Inc.
|
|
|
|
|
|
Kernel compatiblity By: Andre Hedrick <andre@suse.com>
|
|
|
Non-Copyright (C) 2000 Andre Hedrick <andre@suse.com>
|
|
@@ -1294,7 +1294,8 @@ static void tw_unmap_scsi_data(struct pci_dev *pdev, struct scsi_cmnd *cmd)
|
|
|
{
|
|
|
dprintk(KERN_WARNING "3w-xxxx: tw_unmap_scsi_data()\n");
|
|
|
|
|
|
- scsi_dma_unmap(cmd);
|
|
|
+ if (cmd->SCp.phase == TW_PHASE_SGLIST)
|
|
|
+ scsi_dma_unmap(cmd);
|
|
|
} /* End tw_unmap_scsi_data() */
|
|
|
|
|
|
/* This function will reset a device extension */
|