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

Commit 1762b57f authored by Wei Yongjun's avatar Wei Yongjun Committed by Jens Axboe
Browse files

skd: fix error return code in skd_pci_probe()



Fix to return -ENOMEM in the skd construct error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent ef089941
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -5321,8 +5321,10 @@ static int skd_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
	}

	skdev = skd_construct(pdev);
	if (skdev == NULL)
	if (skdev == NULL) {
		rc = -ENOMEM;
		goto err_out_regions;
	}

	skd_pci_info(skdev, pci_str);
	pr_info("(%s): %s 64bit\n", skd_name(skdev), pci_str);