OSDN Git Service

RDMA/uverbs: Pass udata on uverbs error unwind
authorGal Pressman <galpress@amazon.com>
Wed, 22 May 2019 08:06:43 +0000 (11:06 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 27 May 2019 17:36:36 +0000 (14:36 -0300)
commit6876aaedc8a11ed182aba1942dac44e9940bfe6c
tree7f7421452bf19273091485a2930bbda079232924
parent6875cb175ca7e0c24aa4460ac2b3257fdf662832
RDMA/uverbs: Pass udata on uverbs error unwind

When destroy_* is called as a result of uverbs create cleanup flow a
cleared udata should be passed instead of NULL to indicate that it is
called under user flow.

Fixes: c4367a26357b ("IB: Pass uverbs_attr_bundle down ib_x destroy path")
Signed-off-by: Gal Pressman <galpress@amazon.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/uverbs_cmd.c
drivers/infiniband/core/uverbs_std_types_cq.c