net/mlx5_core: Fix race on driver load
authorEli Cohen <eli@dev.mellanox.co.il>
Thu, 6 Nov 2014 10:51:22 +0000 (12:51 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Nov 2014 21:40:36 +0000 (16:40 -0500)
commit364d1798efdf13c7f2b9d902228adf8e84f1d963
tree7662a703252362ffbca459f891a34f73e6140c8c
parenta158906dd7d4379e85ec371a14edfe1ce5f2318d
net/mlx5_core: Fix race on driver load

When events arrive at driver load, the event handler gets called even before
the spinlock and list are initialized. Fix this by moving the initialization
before EQs creation.

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