RDMA/iwpm: Rely on the rdma_nl_[un]register() to ensure that requests are valid
authorLeon Romanovsky <leonro@nvidia.com>
Fri, 23 Jul 2021 14:08:57 +0000 (17:08 +0300)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 30 Jul 2021 13:01:41 +0000 (10:01 -0300)
commitbbafcbc2b1c9a9b01ecd97020cf5057a22cb20b2
tree00a9a28d38043cf8a84e56cf3f458e2e4c4fae3e
parentbdb0e4e3ff19b6699ab82828412f2fd9ad811b1d
RDMA/iwpm: Rely on the rdma_nl_[un]register() to ensure that requests are valid

The core netlink code alread guarentees that no netlink callback can be
running outside the rdma_nl_register/unregister() region and this
registration happens during module init/exit. Thus it is already prevented
that iwpm_valid_client() can ever fail. Remove it.

Link: https://lore.kernel.org/r/a9f05a78f9996bf6ea47099b5e02671bf742f5ab.1627048781.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/core/iwpm_msg.c
drivers/infiniband/core/iwpm_util.c
drivers/infiniband/core/iwpm_util.h