mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
Merge "scsi: ufs: Check qcg before dereferencing"
This commit is contained in:
commit
829fba660f
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue