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:23 +0000 (07:29 -0800)
commit99e9489477a4b5c90d64f82a40dbc9680c630b1c
tree7879c03333f3cc73d3d3f48b2c8b46d26a0c56ad
parent024abeeced731bf7cba90edad7e352bbc4ee1dd1
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