提交 fa3f2c6e 编写于 作者: M Matthew R. Ochs 提交者: James Bottomley

cxlflash: Correct trace string

The trace following the failure of alloc_mem() incorrectly identifies
which function failed. This can lead to misdiagnosing a failure.

Fix the string to correctly indicate that alloc_mem() failed.
Reported-by: NBrian King <brking@linux.vnet.ibm.com>
Signed-off-by: NMatthew R. Ochs <mrochs@linux.vnet.ibm.com>
Signed-off-by: NManoj N. Kumar <manoj@linux.vnet.ibm.com>
Reviewed-by: NBrian King <brking@linux.vnet.ibm.com>
Reviewed-by: NAndrew Donnellan <andrew.donnellan@au1.ibm.com>
Reviewed-by: NTomas Henzl <thenzl@redhat.com>
Signed-off-by: NJames Bottomley <JBottomley@Odin.com>
上级 17ead26f
...@@ -2377,7 +2377,7 @@ static int cxlflash_probe(struct pci_dev *pdev, ...@@ -2377,7 +2377,7 @@ static int cxlflash_probe(struct pci_dev *pdev,
cfg->host = host; cfg->host = host;
rc = alloc_mem(cfg); rc = alloc_mem(cfg);
if (rc) { if (rc) {
dev_err(&pdev->dev, "%s: call to scsi_host_alloc failed!\n", dev_err(&pdev->dev, "%s: call to alloc_mem failed!\n",
__func__); __func__);
rc = -ENOMEM; rc = -ENOMEM;
scsi_host_put(cfg->host); scsi_host_put(cfg->host);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册