Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1710328
| From | Juergen Gross <jgross@suse.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] net/i40evf: use cpumask_copy() for assigning cpumask |
| Date | 2017-08-12 18:20 +0200 |
| Message-ID | <udHiN-36a-9@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Using direct assignment for a cpumask is wrong, cpumask_copy() should be used instead. Cc: stable@vger.kernel.org Signed-off-by: Juergen Gross <jgross@suse.com> --- drivers/net/ethernet/intel/i40evf/i40evf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/i40evf/i40evf_main.c b/drivers/net/ethernet/intel/i40evf/i40evf_main.c index 7c213a347909..a4b60367ecce 100644 --- a/drivers/net/ethernet/intel/i40evf/i40evf_main.c +++ b/drivers/net/ethernet/intel/i40evf/i40evf_main.c @@ -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); } /** -- 2.12.3
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] net/i40evf: use cpumask_copy() for assigning cpumask Juergen Gross <jgross@suse.com> - 2017-08-12 18:20 +0200
csiph-web