]> git.baikalelectronics.ru Git - kernel.git/commit
IB/uverbs: Fix method merging in uverbs_ioctl_merge
authorMatan Barak <matanb@mellanox.com>
Tue, 13 Feb 2018 10:18:32 +0000 (12:18 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 15 Feb 2018 21:59:45 +0000 (14:59 -0700)
commit8c86a0c6426a4ba7db53450cbf1c1e5c9ca55a9b
tree4e3de7282e2980a9491cada7c10ce3b601335342
parent5c90c77359e6fc69469ae8f3830768b276685953
IB/uverbs: Fix method merging in uverbs_ioctl_merge

Fix a bug in uverbs_ioctl_merge that looked at the object's iterator
number instead of the method's iterator number when merging methods.

While we're at it, make the uverbs_ioctl_merge code a bit more clear
and faster.

Fixes: 2e7a452530f1 ('IB/core: Add uverbs merge trees functionality')
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_ioctl_merge.c