]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit598472639877e50beb5f87faf9dbbd7dee4ed43f
tree7662a703252362ffbca459f891a34f73e6140c8c
parentcdc527928882c4844a171b0f75913b6379b0f671
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