]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/ucma: ucma_context reference leak in error path
authorShamir Rabinovitch <shamir.rabinovitch@oracle.com>
Tue, 10 Apr 2018 14:26:23 +0000 (10:26 -0400)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 16 Apr 2018 15:49:24 +0000 (09:49 -0600)
commitef95a90ae6f4f21990e1f7ced6719784a409e811
tree0ac674deb491b364a271fc90334688f8af3aa975
parent60cc43fc888428bb2f18f08997432d426a243338
RDMA/ucma: ucma_context reference leak in error path

Validating input parameters should be done before getting the cm_id
otherwise it can leak a cm_id reference.

Fixes: 6a21dfc0d0db ("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>
drivers/infiniband/core/ucma.c