mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-16 22:39:48 +00:00
RDMA/ucma: ucma_context reference leak in error path
commitef95a90ae6upstream. Validating input parameters should be done before getting the cm_id otherwise it can leak a cm_id reference. Fixes:6a21dfc0d0("RDMA/ucma: Limit possible option size") Signed-off-by: Shamir Rabinovitch <shamir.rabinovitch@oracle.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
This commit is contained in:
parent
f510433b0d
commit
1b61cf47b6
1 changed files with 3 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue