]> git.baikalelectronics.ru Git - kernel.git/commit
IB/uverbs: Fix validating mandatory attributes
authorMatan Barak <matanb@mellanox.com>
Tue, 24 Apr 2018 08:15:20 +0000 (08:15 +0000)
committerDoug Ledford <dledford@redhat.com>
Fri, 27 Apr 2018 17:53:41 +0000 (13:53 -0400)
commit49a8af6c76ac6aee3d2d9745df39c913084aef94
tree1b9af4cbb62fb8627f6673a53c2a8a814ab3a837
parent824eb50a5ab5e6fcdbc3d5aeac1c2e7d543a4175
IB/uverbs: Fix validating mandatory attributes

Previously, if a method contained mandatory attributes in a namespace
that wasn't given by the user, these attributes weren't validated.
Fixing this by iterating over all specification namespaces.

Fixes: e3f952a56c53 ("IB/core: Add new ioctl interface")
Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/uverbs_ioctl.c