]> git.baikalelectronics.ru Git - kernel.git/commit
IB/uverbs: Free uapi on destroy
authorMark Bloch <markb@mellanox.com>
Tue, 25 Sep 2018 08:23:55 +0000 (11:23 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 25 Sep 2018 20:47:33 +0000 (14:47 -0600)
commit0fb64136eb9174c34c1e8e1b8e1a1604e6405e5c
tree5a4530e7e4ccb7d7123e5f1a81f22e9a8a4c6162
parentd0821dfe06cb5b50514d1a71fbd76595106a873a
IB/uverbs: Free uapi on destroy

Make sure we free struct uverbs_api once we clean the radix tree. It was
allocated by uverbs_alloc_api().

Fixes: 72771fc2b0cd ("IB/uverbs: Build the specs into a radix tree at runtime")
Reported-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Mark Bloch <markb@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_uapi.c