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)
commit08e74be103051861eb2c1ee52a2dcf119cde264f
tree4c71d8583c1c94aea7021f9a7bdd6daedd50df1c
parentf40f299bbe806a2e2c8b0d7cdda822fa3bdd171b
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: 7d96c9b17636 ("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