]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/uverbs: Fix error cleanup path of ib_uverbs_add_one()
authorParav Pandit <parav@mellanox.com>
Wed, 5 Sep 2018 06:47:57 +0000 (09:47 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 5 Sep 2018 22:15:52 +0000 (16:15 -0600)
commitf00c975276d81a02500be4122d664e7a48430c72
tree4c71d8583c1c94aea7021f9a7bdd6daedd50df1c
parentf51bd15443f686f15132359f92efda05578f4e7b
RDMA/uverbs: Fix error cleanup path of ib_uverbs_add_one()

If ib_uverbs_create_uapi() fails, dev_num should be freed from the bitmap.

Fixes: c8e222905902 ("IB/uverbs: Have the core code create the uverbs_root_spec")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_main.c