diff options
author | Saeed Mahameed <saeedm@mellanox.com> | 2016-09-29 19:35:38 +0300 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2016-10-30 15:41:46 +0200 |
commit | bdc379249c5b844c55213116e34e9b97c9029dbf (patch) | |
tree | b96acefbf9a2a23be5a52f988a334d4f2c148090 /drivers/infiniband/hw/mlx5 | |
parent | a909d3e636995ba7c349e2ca5dbb528154d4ac30 (diff) | |
download | linux-stable-bdc379249c5b844c55213116e34e9b97c9029dbf.tar.gz linux-stable-bdc379249c5b844c55213116e34e9b97c9029dbf.tar.bz2 linux-stable-bdc379249c5b844c55213116e34e9b97c9029dbf.zip |
IB/mlx5: Skip handling unknown events
Do not dispatch unknown mlx5 core events on mlx5_ib_event.
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/infiniband/hw/mlx5')
-rw-r--r-- | drivers/infiniband/hw/mlx5/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/main.c b/drivers/infiniband/hw/mlx5/main.c index 22174774dbb8..d02341eebddb 100644 --- a/drivers/infiniband/hw/mlx5/main.c +++ b/drivers/infiniband/hw/mlx5/main.c @@ -2358,6 +2358,8 @@ static void mlx5_ib_event(struct mlx5_core_dev *dev, void *context, ibev.event = IB_EVENT_CLIENT_REREGISTER; port = (u8)param; break; + default: + return; } ibev.device = &ibdev->ib_dev; |