Re: [PATCH v2] RDMA/rxe: check for error

From: Jason Gunthorpe
Date: Mon May 04 2020 - 13:22:18 EST


On Sun, Apr 26, 2020 at 12:35:45AM +0100, Sudip Mukherjee wrote:
> The commit 'ff23dfa13457' modified rxe_create_mmap_info() to return
> error code and also NULL but missed fixing codes which called
> rxe_create_mmap_info(). Modify rxe_create_mmap_info() to only return
> errorcode and fix error checking after rxe_create_mmap_info() was
> called.
>
> Fixes: ff23dfa13457 ("IB: Pass only ib_udata in function prototypes")
> Cc: stable@xxxxxxxxxxxxxxx [5.4+]
> Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@xxxxxxxxx>
> Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@xxxxxxxxx>
> ---
> drivers/infiniband/sw/rxe/rxe_mmap.c | 2 +-
> drivers/infiniband/sw/rxe/rxe_queue.c | 6 ++++--
> 2 files changed, 5 insertions(+), 3 deletions(-)

Applied to for-rc, thanks

Jason