IB/mlx5: Fix fatal error dispatching
authorEli Cohen <eli@mellanox.com>
Thu, 27 Oct 2016 13:36:44 +0000 (16:36 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 17 Nov 2016 01:03:44 +0000 (20:03 -0500)
commitdbaaff2a2caa03d472b5cc53a3fbfd415c97dc26
treec48f2bee323daccd92b2331cd5f538b7c4e8e0f1
parent6bc1a656ab9f57f0112823b4a36930c9a29d1f89
IB/mlx5: Fix fatal error dispatching

When an internal error condition is detected, make sure to set the
device inactive after dispatching the event so ULPs can get a
notification of this event.

Fixes: e126ba97dba9 ('mlx5: Add driver for Mellanox Connect-IB adapters')
Signed-off-by: Eli Cohen <eli@mellanox.com>
Signed-off-by: Maor Gottlieb <maorg@mellanox.com>
Reviewed-by: Mohamad Haj Yahia <mohamad@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/mlx5/main.c