mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-16 07:35:14 +00:00
scsi: csiostor: fix incorrect dma device in case of vport
[ Upstream commit 9934613edc
]
In case of ->vport_create() call scsi_add_host_with_dma() instead of
scsi_add_host() to pass correct dma device.
Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
a76bee5c31
commit
a88218f75d
1 changed files with 1 additions and 1 deletions
|
@ -649,7 +649,7 @@ csio_shost_init(struct csio_hw *hw, struct device *dev,
|
|||
if (csio_lnode_init(ln, hw, pln))
|
||||
goto err_shost_put;
|
||||
|
||||
if (scsi_add_host(shost, dev))
|
||||
if (scsi_add_host_with_dma(shost, dev, &hw->pdev->dev))
|
||||
goto err_lnode_exit;
|
||||
|
||||
return ln;
|
||||
|
|
Loading…
Reference in a new issue