RDMA/efa: Remove check that prevents destroy of resources in error flows
authorLeon Romanovsky <leonro@mellanox.com>
Mon, 20 May 2019 06:54:22 +0000 (09:54 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 22 May 2019 00:14:28 +0000 (21:14 -0300)
commit62a38e704d5720e2b73d0e1d6dfc54441ee75985
tree4b2534f10b12c6f911398b38f95c3771d790cd1e
parentdab99af99c7ca4c9dbea7d4d218ef7eb6b183aaf
RDMA/efa: Remove check that prevents destroy of resources in error flows

Drivers cannot check the udata for validity when doing destroy as there
will be no way to report this error back to the uverbs.

Since udata is new for destroy no driver should start to use it - instead
drivers should opt for the ioctl interface and define it in a way where it
cannot fail due to incorrect data.

Remove the checks on udata construction so EFA is consistent with
everything else.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/efa/efa_verbs.c