]> git.baikalelectronics.ru Git - kernel.git/commit
IB/rdmavt: Always return ERR_PTR from rvt_create_mmap_info()
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Fri, 24 Apr 2020 17:31:46 +0000 (18:31 +0100)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 24 Apr 2020 18:31:26 +0000 (15:31 -0300)
commite941fb1080d47c0f5d6d8a73abd7d5e1e7151c4c
treec3bb03c31161b8fbbf5f3f27277e4c6568507255
parentfb0c79896cdd16e82be1774adba44e878776944b
IB/rdmavt: Always return ERR_PTR from rvt_create_mmap_info()

The commit below modified rvt_create_mmap_info() to return ERR_PTR's but
didn't update the callers to handle them. Modify rvt_create_mmap_info() to
only return ERR_PTR and fix all error checking after
rvt_create_mmap_info() was called.

Fixes: a8101ca5302f ("IB: Pass only ib_udata in function prototypes")
Link: https://lore.kernel.org/r/20200424173146.10970-1-sudipm.mukherjee@gmail.com
Cc: stable@vger.kernel.org [5.4+]
Tested-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Acked-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/rdmavt/cq.c
drivers/infiniband/sw/rdmavt/mmap.c
drivers/infiniband/sw/rdmavt/qp.c
drivers/infiniband/sw/rdmavt/srq.c