mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-02 07:29:12 -04:00
i40e: use cpumask_copy instead of direct assignment
According to the header file cpumask.h, we shouldn't be directly copying a cpumask_t, since its a bitmap and might not be copied correctly. Lets use the provided cpumask_copy() function instead. Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
committed by
Jeff Kirsher
parent
f0db789287
commit
7e4d01e7d3
@@ -3449,7 +3449,7 @@ static void i40e_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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user