Alex Vesker 9b022a6e0f net/mlx4_core: Check device state before unregistering it
Verify that the device state is registered before un-registering it.
This check is required to prevent an OOPS on flows that do
re-registration of the device and its previous state was
unregistered.

Fixes: 225c7b1feef1 ("IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters")
Signed-off-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-07-25 18:00:25 -07:00
..
2016-06-18 06:04:01 -10:00
2016-05-19 11:27:09 -07:00
2016-05-31 22:17:05 +05:30
2016-07-16 06:11:59 +09:00
2016-05-18 16:38:59 -07:00
2016-07-18 11:50:40 +02:00
2016-07-25 11:09:19 -07:00
2016-07-20 23:39:36 -07:00
2016-05-27 15:26:11 -07:00
2016-04-30 13:56:46 -07:00
2016-06-15 09:51:35 +01:00
2016-05-20 21:26:15 -07:00
2016-05-29 22:32:27 -07:00
2016-05-20 18:33:37 -07:00
2016-06-07 15:56:31 -07:00
2016-04-30 14:15:56 -07:00
2016-07-06 22:32:15 -07:00
2016-05-01 14:11:12 -07:00
2016-05-31 21:25:52 -06:00
2016-07-01 05:32:17 -04:00
2016-05-31 08:20:43 +03:00
2016-05-23 11:18:01 -07:00