]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/uverbs: Check existence of create_flow callback
authorJason Gunthorpe <jgg@mellanox.com>
Mon, 25 Jun 2018 21:21:15 +0000 (15:21 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 25 Jun 2018 21:21:56 +0000 (15:21 -0600)
commitdf5bf4e596127453d93d17020108fe3b1d3cfffd
treec5395ba1c2dfdc29fde5b4303aa28d484ddf0e19
parent3695b84a0c39649434d42d832d06175861078200
RDMA/uverbs: Check existence of create_flow callback

In the accepted series "Refactor ib_uverbs_write path", we presented the
roadmap to get rid of uverbs_cmd_mask and uverbs_ex_cmd_mask fields in
favor of simple check of function pointer. So let's put NULL check of
create_flow function callback despite the fact that uverbs_ex_cmd_mask
still exists.

Link: https://www.spinics.net/lists/linux-rdma/msg60753.html
Suggested-by: Michael J Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_cmd.c