On Tue, Jul 14, 2020 at 10:57:48AM +0000, Yang Yingliang wrote:
Add missing mmput() on error path to avoid ref-count leak.
This problem has already been resolved in mainline by f27a0d50a4bc ("RDMA/umem: Use umem->owning_mm inside ODP").
Fixes: 79bb5b7ee177 ("RDMA/umem: Fix missing mmap_sem in get umem ODP call") Signed-off-by: Yang Yingliang yangyingliang@huawei.com
drivers/infiniband/core/umem_odp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
$ ./scripts/get_maintainer.pl --file drivers/infiniband/core/umem_odp.c Doug Ledford dledford@redhat.com (supporter:INFINIBAND SUBSYSTEM) Jason Gunthorpe jgg@ziepe.ca (supporter:INFINIBAND SUBSYSTEM,commit_signer:28/25=100%,authored:17/25=68%,added_lines:453/481=94%,removed_lines:662/722=92%) Leon Romanovsky leon@kernel.org (commit_signer:16/25=64%) Artemy Kovalyov artemyko@mellanox.com (commit_signer:4/25=16%) Yishai Hadas yishaih@mellanox.com (commit_signer:3/25=12%,authored:3/25=12%) Andrew Morton akpm@linux-foundation.org (commit_signer:2/25=8%) Moni Shoua monis@mellanox.com (authored:2/25=8%) linux-rdma@vger.kernel.org (open list:INFINIBAND SUBSYSTEM) linux-kernel@vger.kernel.org (open list)
Any reason you ignored the mailing list for the whole IB developer community?
And you need to make this REALLY obvious that this is a stable-tree-only patch, for a specific kernel version (and why only that one version), and a whole lot more description to allow everyone to know what is going on, and what you expect them to review this for.
thanks,
greg k-h