Re: [PATCH v3] IB/rdmavt: return proper error code
From: Jason Gunthorpe
Date: Fri Apr 24 2020 - 14:33:15 EST
On Fri, Apr 24, 2020 at 06:31:46PM +0100, Sudip Mukherjee wrote:
> The commit 'ff23dfa13457' modified rvt_create_mmap_info() to return
> error code and also NULL but missed fixing codes which called
> rvt_create_mmap_info(). Modify rvt_create_mmap_info() to only return
> errorcode and fix error checking after rvt_create_mmap_info() was
> called.
>
> Fixes: ff23dfa13457 ("IB: Pass only ib_udata in function prototypes")
> Cc: stable@xxxxxxxxxxxxxxx [5.4+]
> Tested-by: Mike Marciniszyn <mike.marciniszyn@xxxxxxxxx>
> Acked-by: Mike Marciniszyn <mike.marciniszyn@xxxxxxxxx>
> Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@xxxxxxxxx>
> ---
> drivers/infiniband/sw/rdmavt/cq.c | 4 ++--
> drivers/infiniband/sw/rdmavt/mmap.c | 4 ++--
> drivers/infiniband/sw/rdmavt/qp.c | 4 ++--
> drivers/infiniband/sw/rdmavt/srq.c | 4 ++--
> 4 files changed, 8 insertions(+), 8 deletions(-)
Applied to for-next, thanks
Jason