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

Commit 829fba66 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "scsi: ufs: Check qcg before dereferencing"

parents 7af2b002 d553a0ff
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2493,6 +2493,9 @@ static void ufs_qcom_qos(struct ufs_hba *hba, int tag, bool is_scsi_cmd)
	if (cpu < 0)
		return;
	qcg = cpu_to_group(host->ufs_qos, cpu);
	if (!qcg)
		return;

	if (qcg->voted) {
		dev_dbg(qcg->host->hba->dev, "%s: qcg: 0x%08x | Mask: 0x%08x - Already voted - return\n",
			__func__, qcg, qcg->mask);