]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/odp: Fix leaking the tgid for implicit ODP
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 4 Mar 2020 18:16:07 +0000 (14:16 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 10 Mar 2020 17:29:07 +0000 (14:29 -0300)
commitedc9dd3d79f9f36ba5b9f292ce5a526f8883e600
tree7fa45aa42e82bf64fe24d313fd4c89a447a7c6cc
parent123063f2101dc149e029de1dddb97859efae82d1
RDMA/odp: Fix leaking the tgid for implicit ODP

The tgid used to be part of ib_umem_free_notifier(), when it was reworked
it got moved to release, but it should have been unconditional as all umem
alloc paths get the tgid.

As is, creating an implicit ODP will leak the tgid reference.

Link: https://lore.kernel.org/r/20200304181607.GA22412@ziepe.ca
Cc: stable@kernel.org
Fixes: 8d6d0e4736a8 ("RDMA/odp: Use mmu_interval_notifier_insert()")
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/umem_odp.c