Skip to contentSkip to conversation

net/i40evf: use cpumask_copy() for assigning cpumask

PATCH Superseded Juergen Gross 1 participant 1 message Aug 12, 2017

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/i40evf: use cpumask_copy() for assigning cpumask

Using direct assignment for a cpumask is wrong, cpumask_copy() should be used instead.

Cc stable at vger.kernel.org
---
 drivers/net/ethernet/intel/i40evf/i40evf_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/intel/i40evf/i40evf_main.c +1 -1
index 7c213a347909..a4b60367ecce 100644
@@ -520,7 +520,7 @@ static void i40evf_irq_affinity_notify(struct irq_affinity_notify *notify,
 	struct i40e_q_vector *q_vector =
 		container_of(notify, struct i40e_q_vector, affinity_notify);
 
-	q_vector->affinity_mask = *mask;
+	cpumask_copy(&q_vector->affinity_mask, mask);
 }
 
 /**
Signature · 1 line
2.12.3