]> 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)
commit0174846c93734cede4c550a8af21afab8ce52fe7
tree4c71d8583c1c94aea7021f9a7bdd6daedd50df1c
parent3bb5002664b58234e7a65b26fd7b0a41c560b40f
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: f1669244178f ("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