net/i40evf: use cpumask_copy() for assigning cpumask
Subsystems (4)
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
Signed-off-by Juergen Gross <[email protected]>
--- 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
@@ -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