linux/drivers/infiniband/sw
Sudip Mukherjee bb43c8e382 RDMA/rxe: Always return ERR_PTR from rxe_create_mmap_info()
The commit below modified rxe_create_mmap_info() to return ERR_PTR's but
didn't update the callers to handle them. Modify rxe_create_mmap_info() to
only return ERR_PTR and fix all error checking after
rxe_create_mmap_info() is called.

Ensure that all other exit paths properly set the error return.

Fixes: ff23dfa134 ("IB: Pass only ib_udata in function prototypes")
Link: https://lore.kernel.org/r/20200425233545.17210-1-sudipm.mukherjee@gmail.com
Link: https://lore.kernel.org/r/20200511183742.GB225608@mwanda
Cc: stable@vger.kernel.org [5.4+]
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2020-05-12 11:47:00 -03:00
..
rdmavt IB/rdmavt: Always return ERR_PTR from rvt_create_mmap_info() 2020-04-24 15:31:26 -03:00
rxe RDMA/rxe: Always return ERR_PTR from rxe_create_mmap_info() 2020-05-12 11:47:00 -03:00
siw RDMA/siw: Fix potential siw_mem refcnt leak in siw_fastreg_mr() 2020-04-15 11:26:51 -03:00
Makefile rdma/siw: addition to kernel build environment 2019-07-02 17:03:41 -03:00