Merge "qos: Add NULL checking for irq descriptor"
This commit is contained in:
commit
726f66a1d1
1 changed files with 5 additions and 1 deletions
|
@ -597,7 +597,11 @@ void pm_qos_add_request(struct pm_qos_request *req,
|
|||
case PM_QOS_REQ_AFFINE_IRQ:
|
||||
if (irq_can_set_affinity(req->irq)) {
|
||||
struct irq_desc *desc = irq_to_desc(req->irq);
|
||||
struct cpumask *mask = desc->irq_data.common->affinity;
|
||||
struct cpumask *mask;
|
||||
|
||||
if (!desc)
|
||||
return;
|
||||
mask = desc->irq_data.common->affinity;
|
||||
|
||||
/* Get the current affinity */
|
||||
cpumask_copy(&req->cpus_affine, mask);
|
||||
|
|
Loading…
Add table
Reference in a new issue