We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3855356 commit c2dd32eCopy full SHA for c2dd32e
drivers/scsi/hpsa.c
@@ -2580,7 +2580,8 @@ static int hpsa_passthru_ioctl(struct ctlr_info *h, void __user *argp)
2580
c->SG[0].Ext = 0; /* we are not chaining*/
2581
}
2582
hpsa_scsi_do_simple_cmd_core(h, c);
2583
- hpsa_pci_unmap(h->pdev, c, 1, PCI_DMA_BIDIRECTIONAL);
+ if (iocommand.buf_size > 0)
2584
+ hpsa_pci_unmap(h->pdev, c, 1, PCI_DMA_BIDIRECTIONAL);
2585
check_ioctl_unit_attention(h, c);
2586
2587
/* Copy the error information out */
0 commit comments