Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1eaec8f3 authored by Robert Elliott's avatar Robert Elliott Committed by James Bottomley
Browse files

hpsa: pass error from pci_set_consistent_dma_mask from hpsa_message



Return the actual error code instead of a generic error code.

Reviewed-by: default avatarScott Teel <scott.teel@pmcs.com>
Signed-off-by: default avatarRobert Elliott <elliott@hp.com>
Signed-off-by: default avatarDon Brace <don.brace@pmcs.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 9ee61794
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5610,7 +5610,7 @@ static int hpsa_message(struct pci_dev *pdev, unsigned char opcode,
	err = pci_set_consistent_dma_mask(pdev, DMA_BIT_MASK(32));
	if (err) {
		iounmap(vaddr);
		return -ENOMEM;
		return err;
	}

	cmd = pci_alloc_consistent(pdev, cmd_sz, &paddr64);