RE: [PATCH for-next] RDMA/irdma: Fix return error sign from irdma_modify_qp

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Subject: [PATCH for-next] RDMA/irdma: Fix return error sign from
> irdma_modify_qp
> 
> There is a typo in the returned error code sign from irdma_modify_qp() when the
> attr_mask is not supported - Fix it.
> 
> Fixes: b48c24c2d710 ("RDMA/irdma: Implement device supported verb APIs")
> Signed-off-by: Kamal Heib <kamalheib1@xxxxxxxxx>
> ---
>  drivers/infiniband/hw/irdma/verbs.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/infiniband/hw/irdma/verbs.c b/drivers/infiniband/hw/irdma/verbs.c
> index 294155293243..154ca25e7e32 100644
> --- a/drivers/infiniband/hw/irdma/verbs.c
> +++ b/drivers/infiniband/hw/irdma/verbs.c
> @@ -1472,7 +1472,7 @@ int irdma_modify_qp(struct ib_qp *ibqp, struct
> ib_qp_attr *attr, int attr_mask,
>  	unsigned long flags;
> 
>  	if (attr_mask & ~IB_QP_ATTR_STANDARD_BITS)
> -		return ~EOPNOTSUPP;
> +		return -EOPNOTSUPP;
> 
Oops. That's a bad one. Thanks!

Acked-by: Shiraz Saleem <shiraz.saleem@xxxxxxxxx>





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux