]> 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)
commita4dca0f65b39305d6a600b1eab90161826cb5a0a
tree7662a703252362ffbca459f891a34f73e6140c8c
parentffa8ca595713bee62eeeb660ffa6633aa7dab0e8
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