]> 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)
commit4d9287e8c56323a724f0999503e182ff95fa680a
tree1b9af4cbb62fb8627f6673a53c2a8a814ab3a837
parentb9d9e86e6757c9b222f6fad48754e9f54f1fc7af
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: 92461c5a9ae9 ("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