On Sun, Oct 07, 2018 at 12:06:34PM +0300, Leon Romanovsky wrote: > From: Yishai Hadas <yishaih@xxxxxxxxxxxx> > > Verify that the input DEVX object type matches the created object. > > As the obj_id in the firmware is not globally unique the object type > must be considered upon checking for a valid object id. > > Once both the type and the id match we know that the lock was taken on > the correct object by the uverbs layer. > > Fixes: e662e14d801b ("IB/mlx5: Add DEVX support for modify and query commands") > Signed-off-by: Yishai Hadas <yishaih@xxxxxxxxxxxx> > Reviewed-by: Artemy Kovalyov <artemyko@xxxxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- > drivers/infiniband/hw/mlx5/devx.c | 180 ++++++++++++++++++++++++++------------ > 1 file changed, 126 insertions(+), 54 deletions(-) Applied to for-next, thanks Jason