net/mlx4_en: Fixed crash when port type is changed
authorAmir Vadai <amirv@mellanox.com>
Thu, 7 Nov 2013 09:08:30 +0000 (11:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Dec 2013 15:29:11 +0000 (07:29 -0800)
commitef06eb9f5076739ed146d74dcdd307daffcc163a
tree431306c35f96ce309972cda9c079854722f0ac63
parent632394c5b26feb80f114a0fc7e9a3e01d464d9ac
net/mlx4_en: Fixed crash when port type is changed

[ Upstream commit 1ec4864b10171b0691ee196d7006ae56d2c153f2 ]

timecounter_init() was was called only after first potential
timecounter_read().
Moved mlx4_en_init_timestamp() before mlx4_en_init_netdev()

Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx4/en_main.c