On Tue, Sep 18, 2018 at 10:51:37AM +0300, Leon Romanovsky wrote: > From: Majd Dibbiny <majd@xxxxxxxxxxxx> > > Uverbs shouldn't enforce QP state in the command unless the user set the QP > state bit in the attribute mask. > > In addition, only copy qp attr fields which have the corresponding bit set > in the attribute mask over to the internal attr structure. > > Fixes: 88de869bbe4f ("RDMA/uverbs: Ensure validity of current QP state value") > Fixes: bc38a6abdd5a ("[PATCH] IB uverbs: core implementation") > Signed-off-by: Majd Dibbiny <majd@xxxxxxxxxxxx> > Signed-off-by: Jack Morgenstein <jackm@xxxxxxxxxxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- > drivers/infiniband/core/uverbs_cmd.c | 68 ++++++++++++++++++++++++------------ > 1 file changed, 45 insertions(+), 23 deletions(-) Applied to for-rc, thanks Jason