OSDN Git Service

IB/mlx5: Verify DEVX general object type correctly
authorYishai Hadas <yishaih@mellanox.com>
Tue, 14 May 2019 11:44:11 +0000 (14:44 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 14 May 2019 13:22:09 +0000 (10:22 -0300)
commitcd5d20f13f2de7d5d528dbbc2b095e06c70bad9a
treea4a051bf4049194280e953e381cdfbcdc66516d6
parent4d7ba8ce0fec6d5f364dc15786453d26fc0ccb65
IB/mlx5: Verify DEVX general object type correctly

As the obj_id in the firmware is not globally unique in general_object,
the object type must be considered upon checking for a valid object id.

Fixes: 2351776e87a1 ("IB/mlx5: Verify DEVX object type")
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/devx.c