net/mlx5_core: Fix race in create EQ
authorEli Cohen <eli@dev.mellanox.co.il>
Thu, 6 Nov 2014 10:51:21 +0000 (12:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Nov 2014 21:40:35 +0000 (16:40 -0500)
commita158906dd7d4379e85ec371a14edfe1ce5f2318d
tree435962b39e77df458649a115deabe4af45b85ece
parentb31f65fb4383a49bdcfa465176754b37e44e1e17
net/mlx5_core: Fix race in create EQ

After the EQ is created, it can possibly generate interrupts and the interrupt
handler is referencing eq->dev. It is therefore required to set eq->dev before
calling request_irq() so if an event is generated before request_irq() returns,
we will have a valid eq->dev field.

Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/eq.c