]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/core: Check for verbs callbacks before using them
authorKamal Heib <kamalheib1@gmail.com>
Fri, 27 Jul 2018 18:23:05 +0000 (21:23 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 31 Jul 2018 02:31:09 +0000 (20:31 -0600)
commit8dfc3a2274b43bc3d52cd2e2daf3b7b7fd3b8708
tree996265242ada89b4d65c8e6767596a0a55bce552
parentcf9b1ab0c3af328a066399a90817e7098001b725
RDMA/core: Check for verbs callbacks before using them

Make sure the providers implement the verbs callbacks before calling
them, otherwise return -EOPNOTSUPP.

Signed-off-by: Kamal Heib <kamalheib1@gmail.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/verbs.c