Skip to content
Commit 6875cb17 authored by Jason Gunthorpe's avatar Jason Gunthorpe
Browse files

RDMA/core: Clear out the udata before error unwind



The core code should not pass a udata to the driver destroy function that
contains the input from the create command. Otherwise the driver will
attempt to interpret the create udata as destroy udata, and at least in
the case of EFA, will leak resources.

Zero this stuff out before invoking destroy.

Reported-by: default avatarLeon Romanovsky <leonro@mellanox.com>
Fixes: c4367a26

 ("IB: Pass uverbs_attr_bundle down ib_x destroy path")
Reviewed-by: default avatarGal Pressman <galpress@amazon.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 619122be
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment