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)
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>

No differences found