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

Commit f82b0862 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufs-qcom-ice: add null pointer check"

parents d29b277b e6fbc87f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -217,6 +217,12 @@ int ufs_qcom_ice_req_setup(struct ufs_qcom_host *qcom_host,
	char cmd_op = cmd->cmnd[0];
	int err;

	if (!qcom_host->ice.pdev || !qcom_host->ice.vops) {
		dev_dbg(qcom_host->hba->dev, "%s: ice device is not enabled\n",
			__func__);
		return 0;
	}

	if (qcom_host->ice.vops->config) {
		memset(&ice_set, 0, sizeof(ice_set));
		err = qcom_host->ice.vops->config(qcom_host->ice.pdev,