On Sun, Apr 26, 2020 at 10:59:21AM +0300, Leon Romanovsky wrote: > From: Jack Morgenstein <jackm@xxxxxxxxxxxxxxxxxx> > > In the mlx4_ib_post_send() flow, some functions call ib_get_cached_pkey() > without checking its return value. If ib_get_cached_pkey() returns > an error code, these functions should return failure. > > Fixes: 1ffeb2eb8be9 ("IB/mlx4: SR-IOV IB context objects and proxy/tunnel SQP support") > Fixes: 225c7b1feef1 ("IB/mlx4: Add a driver Mellanox ConnectX InfiniBand adapters") > Fixes: e622f2f4ad21 ("IB: split struct ib_send_wr") > Signed-off-by: Jack Morgenstein <jackm@xxxxxxxxxxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- > drivers/infiniband/hw/mlx4/qp.c | 14 +++++++++++--- > 1 file changed, 11 insertions(+), 3 deletions(-) Applied to for-rc Thanks, Jason